joaomfrebelo/composer-revision-plugin

Simple composer plugin which generates a class containing the VCS references of all packages, derivated from (mcuelenaere/composer-revision-plugin)

2.0.1 2020-12-20 15:28 UTC

This package is auto-updated.

Last update: 2024-04-20 22:51:51 UTC


README

Simple composer plugin which generates a class containing the VCS references of all packages

Installation

Just run

composer require joaomfrebelo/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'];