PHPackages                             baruica/document-storage - 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. baruica/document-storage

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

baruica/document-storage
========================

Provides implementations to interact with various document storage services

0.6.1(10y ago)019Apache-2.0PHPPHP ^7.0

Since Jun 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/baruica/document-storage)[ Packagist](https://packagist.org/packages/baruica/document-storage)[ Docs](https://github.com/baruica/document-storage)[ RSS](/packages/baruica-document-storage/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (23)Used By (0)

document-storage
================

[](#document-storage)

Provides adapters to various storage services.

[![Author](https://camo.githubusercontent.com/8ef080ed3e25d0688c617e8f8cb4081024a815cfffc93d2cbd3ebab583ca40c5/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40626172756963612d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/baruica)[![Build Status](https://camo.githubusercontent.com/a23058e481ea07a77e0281ef86db8bb6a2bad7651466470fa2cced695d3e949f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626172756963612f646f63756d656e742d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/baruica/document-storage)[![Quality Score](https://camo.githubusercontent.com/52ad3ff18ff20d534244228250b2ece58ab5c87b9f96b46f9d42402a40167d1b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626172756963612f646f63756d656e742d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/baruica/document-storage/?branch=master)

Install
-------

[](#install)

Via composer

```
composer require baruica/document-storage
```

Storage adapters
----------------

[](#storage-adapters)

All storage adapters implement the `DocumentStorage\Storage` interface:

- `DocumentStorage\Adapter\Storage\Composite`
- `DocumentStorage\Adapter\Storage\Filesystem`
- `DocumentStorage\Adapter\Storage\S3`

**To store a document:**

```
$docUrl = $storage->store('body of a doc', 'docName');
```

The method returns the document's url.

**To get the document's url**

```
$docUrl = $storage->getUrl('docName');
```

If the document doesn't exist, it will throw a `DocumentStorage\Exception\DocumentNotFound`

Code License
------------

[](#code-license)

[LICENSE](https://github.com/baruica/document-storage/blob/master/LICENSE)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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 ~34 days

Recently: every ~131 days

Total

22

Last Release

3685d ago

PHP version history (3 changes)0.1PHP &gt;=5.4.0

0.2.1PHP &gt;=5.3.3

0.6.0PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/282221?v=4)[Nelson da Costa](/maintainers/baruica)[@baruica](https://github.com/baruica)

---

Tags

document-storage

### Embed Badge

![Health badge](/badges/baruica-document-storage/health.svg)

```
[![Health](https://phpackages.com/badges/baruica-document-storage/health.svg)](https://phpackages.com/packages/baruica-document-storage)
```

PHPackages © 2026

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