2017 © Pedro Peláez
 

library composer-lock-parser

OOP reader of composer.lock file.

image

t4web/composer-lock-parser

OOP reader of composer.lock file.

  • Sunday, November 27, 2016
  • by maxgu
  • Repository
  • 2 Watchers
  • 9 Stars
  • 578 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 26 % Grown

The README.md

Composer .lock Parser

OOP reader of composer.lock file, (*1)

Introduction

Parse composer.lock file and return full information about installed packages in OOP style., (*2)

Requirements

Features / Goals

  • Create Composer Entity with full general information from composer.lock [DONE]
  • Create Package Entity with full information about packges [DONE]

Installation

Main Setup

"require": {
    "t4web/composer-lock-parser": "1.1.*"
}

Usage

Creating ComposerInfo object and getting all of the packages, (*3)

$composerInfo = new \ComposerLockParser\ComposerInfo('/path/to/composer.lock');
// default all packages
$packages = $composerInfo->getPackages();
// or explicitly get all packages
$packages = $composerInfo->getPackages($composerInfo::ALL);

echo $packages[0]->getName();
echo $packages[0]->getVersion();
echo $packages[0]->getNamespace();

Getting just production packages., (*4)

$composerInfo = new \ComposerLockParser\ComposerInfo('/path/to/composer.lock');
$packages = $composerInfo->getPackages($composerInfo::PRODUCTION);

Getting just development packages., (*5)

$composerInfo = new \ComposerLockParser\ComposerInfo('/path/to/composer.lock');
$packages = $composerInfo->getPackages($composerInfo::DEVELOPMENT);

Testing

Tests runs with Codeception, (*6)

$ codeception run

The Versions

27/11 2016

dev-master

9999999-dev https://github.com/t4web/ComposerLockParser

OOP reader of composer.lock file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

composer.lock reader

27/11 2016

1.0.3

1.0.3.0 https://github.com/t4web/ComposerLockParser

OOP reader of composer.lock file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

composer.lock reader

16/11 2014

1.0.2

1.0.2.0 https://github.com/t4web/ComposerLockParser

OOP reader of composer.lock file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

composer.lock reader

02/11 2014

1.0.1

1.0.1.0 https://github.com/t4web/ComposerLockParser

OOP reader of composer.lock file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

composer.lock reader

13/10 2014

1.0.0

1.0.0.0 https://github.com/t4web/ComposerLockParser

OOP reader of composer.lock file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

composer.lock reader

08/10 2014

0.1.0

0.1.0.0 https://github.com/t4web/ComposerLockParser

OOP reader of composer.lock file.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

composer.lock reader