PHPackages                             puli/repository - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. puli/repository

ActiveLibrary[File &amp; Storage](/categories/file-storage)

puli/repository
===============

A filesystem-like repository for storing arbitrary resources.

1.0.0-beta10(10y ago)44287.6k40[2 PRs](https://github.com/puli/repository/pulls)20MITPHPPHP ^5.3.9|^7.0CI failing

Since Feb 4Pushed 9y ago26 watchersCompare

[ Source](https://github.com/puli/repository)[ Packagist](https://packagist.org/packages/puli/repository)[ Docs](http://puli.io)[ RSS](/packages/puli-repository/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (15)Used By (20)

The Puli Repository Component
=============================

[](#the-puli-repository-component)

[![Build Status](https://camo.githubusercontent.com/16fcf3aa6f5140f4e2935e0f210328cf7186ac401092cfcb60405b3dd92ddcd0/68747470733a2f2f7472617669732d63692e6f72672f70756c692f7265706f7369746f72792e7376673f6272616e63683d312e30)](https://travis-ci.org/puli/repository)[![Build status](https://camo.githubusercontent.com/60cd6e7c328d71867ca067e6e5c48cf791935db4865394bb2b5e24544ab360fc/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f613067356a64746a37387776353363302f6272616e63682f312e303f7376673d74727565)](https://ci.appveyor.com/project/webmozart/repository/branch/1.0)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dc96ad7642bf1291aab555f0fee4db8a1b8abed71509ac8fb67952178d449c7d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70756c692f7265706f7369746f72792f6261646765732f7175616c6974792d73636f72652e706e673f623d312e30)](https://scrutinizer-ci.com/g/puli/repository/?branch=1.0)[![Latest Stable Version](https://camo.githubusercontent.com/775043628532e85bfad269dd2fde849aac4c307eb4116406835b90e9013e0217/68747470733a2f2f706f7365722e707567782e6f72672f70756c692f7265706f7369746f72792f762f737461626c652e737667)](https://packagist.org/packages/puli/repository)[![Total Downloads](https://camo.githubusercontent.com/d19c56295e4555e80c3caaf28cdf7d269f2b64a16f77299513c3bc087a3dedff/68747470733a2f2f706f7365722e707567782e6f72672f70756c692f7265706f7369746f72792f646f776e6c6f6164732e737667)](https://packagist.org/packages/puli/repository)[![Dependency Status](https://camo.githubusercontent.com/067392c20f4e33490d80616d6b93fb01cdcf682b3ef5cb46e10cc6d40a398f0e/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f70756c693a7265706f7369746f72792f312e302e302f62616467652e737667)](https://www.versioneye.com/php/puli:repository/1.0.0)

Latest release: [1.0.0-beta10](https://packagist.org/packages/puli/repository#1.0.0-beta10)

PHP &gt;= 5.3.9

The [Puli](http://puli.io) 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`](http://api.puli.io/latest/class-Puli.Repository.Api.ResourceRepository.html) implementations are currently supported:

- [`InMemoryRepository`](http://api.puli.io/latest/class-Puli.Repository.InMemoryRepository.html)
- [`FilesystemRepository`](http://api.puli.io/latest/class-Puli.Repository.FilesystemRepository.html)
- [`NullRepository`](http://api.puli.io/latest/class-Puli.Repository.NullRepository.html)
- [`JsonRepository`](http://api.puli.io/latest/class-Puli.Repository.JsonRepository.html)
- [`OptimizedJsonRepository`](http://api.puli.io/latest/class-Puli.Repository.OptimizedJsonRepository.html)

The following [`Resource`](http://api.puli.io/latest/class-Puli.Repository.Api.Resource.Resource.html) implementations are currently supported:

- [`GenericResource`](http://api.puli.io/latest/class-Puli.Repository.Resource.GenericResource.html)
- [`FileResource`](http://api.puli.io/latest/class-Puli.Repository.Resource.FileResource.html)
- [`DirectoryResource`](http://api.puli.io/latest/class-Puli.Repository.Resource.DirectoryResource.html)
- [`LinkResource`](http://api.puli.io/latest/class-Puli.Repository.Resource.LinkResource.html)

Authors
-------

[](#authors)

- [Bernhard Schussek](http://webmozarts.com) a.k.a. [@webmozart](https://twitter.com/webmozart)
- [The Community Contributors](https://github.com/puli/repository/graphs/contributors)

Installation
------------

[](#installation)

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

Documentation
-------------

[](#documentation)

Read the [Puli Documentation](http://docs.puli.io/en/latest/index.html) to learn more about Puli.

Contribute
----------

[](#contribute)

Contributions to Puli are always welcome!

- Report any bugs or issues you find on the [issue tracker](https://github.com/puli/issues/issues).
- You can grab the source code at Puli’s [Git repository](https://github.com/puli/repository).

Support
-------

[](#support)

If you are having problems, send a mail to  or shout out to [@webmozart](https://twitter.com/webmozart) on Twitter.

License
-------

[](#license)

All contents of this package are licensed under the [MIT license](LICENSE).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~44 days

Total

14

Last Release

3755d ago

PHP version history (2 changes)1.0.0-alpha2PHP &gt;=5.3.9

1.0.0-beta9PHP ^5.3.9|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/00803e109877ea9de0995e81c928871a595781bd6ea227092bfd7c6df5af58f0?d=identicon)[webmozart](/maintainers/webmozart)

---

Top Contributors

[![webmozart](https://avatars.githubusercontent.com/u/176399?v=4)](https://github.com/webmozart "webmozart (523 commits)")[![tgalopin](https://avatars.githubusercontent.com/u/1651494?v=4)](https://github.com/tgalopin "tgalopin (70 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (10 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (6 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![WedgeSama](https://avatars.githubusercontent.com/u/1552205?v=4)](https://github.com/WedgeSama "WedgeSama (2 commits)")[![arnolanglade](https://avatars.githubusercontent.com/u/3585922?v=4)](https://github.com/arnolanglade "arnolanglade (1 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (1 commits)")[![DavidBadura](https://avatars.githubusercontent.com/u/470138?v=4)](https://github.com/DavidBadura "DavidBadura (1 commits)")[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (1 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/puli-repository/health.svg)

```
[![Health](https://phpackages.com/badges/puli-repository/health.svg)](https://phpackages.com/packages/puli-repository)
```

###  Alternatives

[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[samsonasik/array-lookup

A fast lookup library that help you verify and search array and Traversable data

2863.0k2](/packages/samsonasik-array-lookup)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
