Skip to content

stof/puli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Locating Files with Puli

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.

Core Components

This package is a meta-package for Puli's core components:

Authors

Installation

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

Documentation

Read the Puli Documentation if you want to learn more about Puli.

Contribute

Contributions to Puli are always 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

Puli manages files, directories and other resources in a filesystem-like repository.

Resources

License

Stars

Watchers

Forks

Packages

No packages published