Download the PHP package ssnepenthe/composer-utilities without Composer
On this page you can find all versions of the php package ssnepenthe/composer-utilities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ssnepenthe/composer-utilities
More information about ssnepenthe/composer-utilities
Files in ssnepenthe/composer-utilities
Package composer-utilities
Short Description Some basic utilities for working with Composer projects.
License GPL-2.0
Homepage https://github.com/ssnepenthe/composer-utilities
Informations about the package composer-utilities
composer-utilities
Some basic utilities for for retrieving information about Composer projects from composer.json
and composer.lock
.
The WordPress implementations assume that you are using the composer/installers
composer plugin, the johnpbloch/wordpress
package for core and wpackagist.org
as a composer repository.
Usage
Instantiate with paths to your composer.json
and composer.lock
files.
Generic json:
Composer Specific:
WordPress Specific:
SSNepenthe\ComposerUtilities\Json
is the base class that provides some convenience methods for working with json files:
SSNepenthe\ComposerUtilities\Composer\Json
extends SSNepenthe\ComposerUtilities\Json
, adding the following methods:
SSNepenthe\ComposerUtilities\WordPress\Json
extends SSNepenthe\ComposerUtilities\Composer\Json
, adding the following methods:
SSNepenthe\ComposerUtilities\Composer\Lock
extends SSNepenthe\ComposerUtilities\Json
, adding the following methods:
Note that individual packages are returned as an instance of SSNepenthe\ComposerUtilities\Composer\Package
with the following methods:
SSNepenthe\ComposerUtilities\WordPress\Lock
extends SSNepenthe\ComposerUtilities\Composer\Lock
, adding the following methods:
Note that individual packages will be returned as an instance of SSNepenthe\ComposerUtilities\WordPress\Package
, which extends SSNepenthe\ComposerUtilities\Composer\Package
with the following methods: