Skip to content

niklongstone/composer-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Puli Plugin for Composer

Build Status Scrutinizer Code Quality SensioLabsInsight Latest Stable Version Total Downloads Dependency Status

Latest release: 1.0.0-beta5

PHP >= 5.3.9

This plugin integrates Composer with the Puli Repository Manager. Whenever you install or update your Composer dependencies, a Puli resource repository and discovery are built from the puli.json files of all installed packages:

{
    "resources": {
        "/acme/blog": "resources"
    }
}

You can load the built repository/discovery in your code:

$factoryClass = PULI_FACTORY_CLASS;
$factory = new $factoryClass();

// Fetch resources from the repository
$repo = $factory->createRepository();

echo $repo->get('/acme/blog/config/config.yml')->getBody();

// Find resources by binding type
$discovery = $factory->createFactory($repo);

foreach ($discovery->find('doctrine/xml-mapping') as $binding) {
    foreach ($binding->getResources() as $resource) {
        // do something...
    }
}

Read Puli at a Glance to learn more about Puli.

Authors

Installation

Follow the Getting Started guide to install Puli in your project.

Documentation

Read the Puli Documentation to learn more about Puli.

Contribute

Contributions to are very welcome!

Support

If you are having problems, send a mail to bschussek@gmail.com or shout out to @webmozart on Twitter.

License

All contents of this package are licensed under the MIT license.

About

Integrates Composer into the Puli package manager.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%