Download the PHP package muglug/package-versions-56 without Composer
On this page you can find all versions of the php package muglug/package-versions-56. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download muglug/package-versions-56
More information about muglug/package-versions-56
Files in muglug/package-versions-56
Package package-versions-56
Short Description A backport of ocramius/package-versions that supports php ^5.6. Composer plugin that provides efficient querying for installed package versions (no runtime IO)
License MIT
Informations about the package package-versions-56
Package Versions
This is a backport of
ocramius/package-versions
that support php 5.6, whileocramius/package-versions
only support php 7+.It's a more recent version of samsonasik/package-versions
This utility provides quick and easy access to version information of composer dependencies.
This information is derived from the file which is (re)generated during or .
Installation
It is suggested that you use a optimized composer autoloader in order to prevent
autoload I/O when accessing the PackageVersions\Versions
API:
Therefore you should use optimize-autoloader: true
in your composer.json:
see https://getcomposer.org/doc/06-config.md#optimize-autoloader
In case you manually generate your autoloader via the CLI use the --optimize
flag:
Use-cases
This repository implements PackageVersions\Versions::getVersion()
in such a way that no IO
happens when calling it, because the list of package versions is compiled during composer
installation.
This is especially useful when you want to generate assets/code/artifacts that are computed from the current version of a certain dependency. Doing so at runtime by checking the installed version of a package would be too expensive, and this package mitigates that.
All versions of package-versions-56 with dependencies
composer-plugin-api Version ^1.0