puli / repository
A filesystem-like repository for storing arbitrary resources.
Requires
- php: ^5.3.9|^7.0
- psr/log: ^1.0
- webmozart/assert: ^1.0
- webmozart/glob: ^4.1
- webmozart/path-util: ^2.2
Requires (Dev)
- phpunit/phpunit: ^4.6
- sebastian/version: ^1.0.1
- symfony/filesystem: ^2.0|^3.0
- webmozart/json: ^1.2.1
- webmozart/key-value-store: ^1.0-beta7
Suggests
- symfony/filesystem: to use the filesystem repository
- webmozart/json: to use the JSON repositories
- webmozart/key-value-store: to use the key-value store change stream
This package is auto-updated.
Last update: 2024-12-08 01:16:35 UTC
README
Latest release: 1.0.0-beta10
PHP >= 5.3.9
The Puli Repository Component provides an API for storing arbitrary resources in a filesystem-like repository:
use Puli\Repository\InMemoryRepository; use Puli\Repository\Resource\DirectoryResource; $repo = new InMemoryRepository(); $repo->add('/config', new DirectoryResource('/path/to/resources/config')); // /path/to/resources/config/routing.yml echo $repo->get('/config/routing.yml')->getBody();
The following ResourceRepository
implementations are currently supported:
The following Resource
implementations are currently supported:
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 Puli are always 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.