mcuelenaere / composer-revision-plugin
Simple composer plugin which generates a class containing the VCS references of all packages
Installs: 6 469
Dependents: 3
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: >=5.3
- composer-plugin-api: ~1.0
Requires (Dev)
- composer/composer: 1.*
This package is auto-updated.
Last update: 2024-10-10 04:36:16 UTC
README
Simple composer plugin which generates a class containing the VCS references of all packages
Installation
Just run
composer require mcuelenaere/composer-revision-plugin
to add this package as a composer dependency to your project.
Usage
All references of the packages you're using in your project can be accessed through the static ComposerRevisions\Revisions::$byName
variable:
$revisionOfMyProject = ComposerRevisions\Revisions::$byName['foo/my-project']; $revisionOfMyLibrary = ComposerRevisions\Revisions::$byName['foo/my-library'];