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

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

phpsoftbox/storage
==================

Storage component for the PhpSoftBox framework

097↓65.6%PHP

Since Jun 10Pushed 3w agoCompare

[ Source](https://github.com/phpsoftbox/storage)[ Packagist](https://packagist.org/packages/phpsoftbox/storage)[ RSS](/packages/phpsoftbox-storage/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PhpSoftBox Storage
==================

[](#phpsoftbox-storage)

About
-----

[](#about)

`phpsoftbox/storage` — компонент хранения файлов для PhpSoftBox с поддержкой локального диска и S3-совместимых хранилищ. По умолчанию ориентирован на Yandex Cloud Object Storage, но можно подключить любой совместимый endpoint.

Ключевые свойства:

- менеджер `Storage` для работы с дисками
- драйверы: `LocalStorage`, `S3Storage`
- `FileHelper` со статическими утилитами для локальных путей и файловой системы

Quick Start
-----------

[](#quick-start)

```
use PhpSoftBox\Storage\Storage;

$storage = new Storage([
    'default' => 'uploads',
    'disks' => [
        'uploads' => [
            'driver' => 'local',
            'rootPath' => __DIR__ . '/storage',
            'baseUrl' => 'https://cdn.local',
        ],
    ],
]);

$contents = $storage->disk('uploads')->get('reports/hello.txt');
```

S3:

```
use PhpSoftBox\Storage\Storage;

$storage = new Storage([
    'default' => 's3',
    'disks' => [
        's3' => [
            'driver' => 's3',
            'bucket' => 'my-bucket',
            'key' => $_ENV['S3_KEY'],
            'secret' => $_ENV['S3_SECRET'],
            'endpoint' => 'https://storage.yandexcloud.net',
            'region' => 'ru-central1',
            'prefix' => 'app',
        ],
    ],
]);

$storage->disk('s3')->put('reports/hello.txt', 'Hello!');
```

Оглавление
----------

[](#оглавление)

- [Документация](docs/index.md)
- [About](docs/01-about.md)
- [Quick Start](docs/02-quick-start.md)
- [S3 (Yandex Cloud)](docs/03-s3.md)
- [Local](docs/04-local.md)
- [API](docs/05-api.md)
- [DI](docs/06-di.md)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance62

Regular maintenance activity

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0279d150240c97d210034878b0467462246dc14d29b5618157ff6a8be49a50e3?d=identicon)[inspector-who](/maintainers/inspector-who)

---

Top Contributors

[![inspector-who](https://avatars.githubusercontent.com/u/6973963?v=4)](https://github.com/inspector-who "inspector-who (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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