cpsit / auditor
Audit PHP application bundles.
Installs: 24 947
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: ^7.4 || ^8.0 ||^8.1
- composer-plugin-api: ^2.0.0
Requires (Dev)
- composer/composer: ^2.1.9
- phpunit/phpunit: ^7.5.0 || ^8.0.0 || ^9.0.0
- symfony/filesystem: ~4.4.0 || ~5.2.0
This package is auto-updated.
Last update: 2024-11-12 18:08:07 UTC
README
Auditor
This is a Composer plugin. It allows to access information about the current (root) package.
Requirements
- Composer
- PHP >= 7.4
Version matrix
Usage
In your project root
composer require cpsit/auditor
After installation or update via Composer a class CPSIT\Auditor\BundleDescriber
is generated.
It allows to access each property of your bundle (root package).
Examples
Get the name of the current root package:
$name = \CPSIT\Auditor\BundleDescriber::getProperty('name');
Get the repositories used by composer for the installation:
$repositories = \CPSIT\Auditor\BundleDescriber::getProperty('repositories');
Get the installed packages (omit not installed package):
$packages = \CPSIT\Auditor\Reflection\PackageVersions::getAll();
Returns an array of CPSIT\Auditor\Dto\Package
objects.