leadtech / composer-lock-parser
OOP reader of composer.lock
Installs: 312
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
pkg:composer/leadtech/composer-lock-parser
Requires
- php: >=5.4.0
Requires (Dev)
This package is not auto-updated.
Last update: 2016-05-28 19:07:16 UTC
README
OOP reader of composer.lock
This is a revised fork of the unmaintained t4web/composer-lock-parse package
Introduction
Parse composer.lock file and return full information about installed packages in OOP style.
Installation
Main Setup
"require": {
"leadtech/composer-lock-parser": "1.0.*"
}
Usage
Creating ComposerInfo object
$composerInfo = new \ComposerLockParser\ComposerInfo('/path/to/composer.lock');
$composerInfo->parse(true);
$composerInfo->getHash();
$composerInfo->getMinimumStability();
$packages = $composerInfo->getPackages();
$packages['leadtech/composer-lock-parser']->getName();
Testing
Tests runs with Codeception
$ codeception run