leadtech/composer-lock-parser

This package is abandoned and no longer maintained. No replacement package was suggested.

OOP reader of composer.lock

1.0.4 2016-05-03 10:08 UTC

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