Latest release: 1.0.0-alpha1
PHP >= 5.3.9
Puli manages files and directories in a virtual repository. Whenever you need to access these resources in your project, you can find them by their Puli path:
use Puli\Repository\ResourceRepository;
$repo = new ResourceRepository();
$repo->add('/config', '/path/to/resources/config');
// /path/to/resources/config/routing.yml
echo $repo->get('/config/routing.yml')->getContents();
This is useful when you have to hard-code paths, for example in configuration files:
# config.yml
import: /config/routing.yml
Read Puli at a Glance if you want to learn more about Puli.
This package is a meta-package for Puli's core components:
- Bernhard Schussek a.k.a. @webmozart
Follow the Getting Started guide to install Puli in your project.
Read the Puli Documentation if you want to learn more about Puli.
Contributions to Puli are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at Puli’s GitHub organization.
If you are having problems, send a mail to [email protected] or shout out to @webmozart on Twitter.
All contents of this package are licensed under the MIT license.