OOP reader of composer.lock file
Parse composer.lock file and return full information about installed packages in OOP style.
- Create Composer Entity with full general information from composer.lock [DONE]
- Create Package Entity with full information about packges [DONE]
"require": {
"t4web/composer-lock-parser": "1.0.*"
}
Creating ComposerInfo object
$composerInfo = new ComposerLockParser\Composer('/path/to/composer.lock');
$composerInfo->getHash();
$packages = $composerInfo->getPackages();
$packages[0]->getName();
$packages[0]->getVersion();
$packages[0]->getNamespace();
Tests runs with Codeception
$ codeception run