puli / composer-plugin
Integrates Composer into the Puli package manager.
Installs: 68 417
Dependents: 39
Suggesters: 2
Security: 0
Stars: 38
Watchers: 9
Forks: 19
Type:composer-plugin
Requires
- php: ^5.3.9|^7.0
- composer-plugin-api: ^1.0
- puli/discovery: ^1.0-beta9
- puli/repository: ^1.0-beta9
- puli/url-generator: ^1.0-beta4
- symfony/filesystem: ^2.3|^3.0
- symfony/process: ^2.3|^3.0
- webmozart/assert: ^1.0
- webmozart/json: ^1.2.2
- webmozart/path-util: ^2.2
Requires (Dev)
- composer/composer: ^1.0-alpha10
- phpunit/phpunit: ^4.6
- sebastian/version: ^1.0.1
- webmozart/glob: ^4.0
This package is auto-updated.
Last update: 2024-10-08 00:03:37 UTC
README
Latest release: 1.0.0-beta10
PHP >= 5.3.9
This plugin integrates Composer with the Puli 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:
{ "path-mappings": { "/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->findBindings('doctrine/xml-mapping') as $binding) { foreach ($binding->getResources() as $resource) { // do something... } }
Authors
Installation
Follow the Installation guide to install Puli in your project.
Documentation
Read the Puli Documentation to learn more about Puli.
Contribute
Contributions to are very welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at Puli’s Git repository.
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.