mcuelenaere/composer-revision-plugin

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

Maintainers

Package info

github.com/mcuelenaere/composer-revision-plugin

Type:composer-plugin

pkg:composer/mcuelenaere/composer-revision-plugin

Statistics

Installs: 6 470

Dependents: 3

Suggesters: 0

Stars: 2

Open Issues: 0

0.1.0 2015-01-03 18:44 UTC

This package is auto-updated.

Last update: 2026-03-10 07:58:38 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'];