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

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

burzum/storage-factory
======================

This library is a factory to instantiate storage adapters based on the Flysystem or Gaufrette library. It can deal with both! Migrating from one lib to another should be easy this way.

1.0.0-alpha1(10y ago)111.9k[1 issues](https://github.com/burzum/storage-factory/issues)MITPHP

Since Aug 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/burzum/storage-factory)[ Packagist](https://packagist.org/packages/burzum/storage-factory)[ Docs](http://github.com/burzum/storage-factory)[ RSS](/packages/burzum-storage-factory/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Storage Factory Library for Flysystem and Gaufrette
===================================================

[](#storage-factory-library-for-flysystem-and-gaufrette)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Build Status](https://camo.githubusercontent.com/35eca507d720e5e00ad1b6c9f5340989af8a0ecf654cc0239cb7af74c1df546d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6275727a756d2f73746f726167652d666163746f72792f332e302e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/burzum/storage-factory)[![Coverage Status](https://camo.githubusercontent.com/0e00f07740ede5c231087772520c589c19dca1853fd72e510780c3eb2a5a8533/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6275727a756d2f73746f726167652d666163746f72792f332e302e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/burzum/storage-factory)

Requirements
------------

[](#requirements)

- PHP 5.4+

At least one of both:

- Gaufrette Library
- Flysystem Library

How to use it
-------------

[](#how-to-use-it)

Configure the adapter instances:

```
$basePath = '/your/base/path';
StorageFactory::config('LocalGaufrette', array(
	'adapterOptions' => [$basePath, true],
	'adapterClass' => '\Gaufrette\Adapter\Local',
	'class' => '\Gaufrette\Filesystem'
));
StorageFactory::config('LocalFlysystem', array(
	'adapterOptions' => [$basePath],
	'engine' => StorageFactory::FLYSYSTEM_ENGINE,
	'adapterClass' => 'Local',
));
```

And get instances of the adapters as you need them.

```
$flysystemLocalFSAdapter = StorageFactory::get('LocalGaufrette');
$gaufretteLocalFSAdapter = StorageFactory::get('LocalFlysystem');
```

Flush or renews adapter objects:

```
// Flushes a specific adapter based on the config name
StorageFactory::flush('LocalGaufrette');
// Flushes ALL adapters
StorageFactory::flush();

// Renews an adapter, set second arg to true
StorageFactory::get('LocalGaufrette', true);
```

Support
-------

[](#support)

For bugs and feature requests, please use the [issues](https://github.com/burzum/storage-factory/issues) section of this repository.

Contributing
------------

[](#contributing)

To contribute to this repository please follow a few basic rules.

- Pull requests must be send to the `develop` branch.
- Contributions must follow the [PSR2 coding standard recommendation](https://github.com/php-fig).
- [Unit tests](https://phpunit.de/) are required.

License
-------

[](#license)

Copyright 2012 - 2015, Florian Krämer

Licensed under The MIT License Redistributions of files must retain the above copyright notice.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3766d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0643e6255da841fe65260ec6e263d8908a40a84b884c32e9fc6be6a15e252fa8?d=identicon)[burzum](/maintainers/burzum)

---

Top Contributors

[![burzum](https://avatars.githubusercontent.com/u/162789?v=4)](https://github.com/burzum "burzum (2 commits)")

---

Tags

ftpfilesystemabstractions3sftpfilestoragemediadropbox

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[innoge/laravel-rclone

A sleek PHP wrapper around rclone with Laravel-style fluent API syntax

174.1k](/packages/innoge-laravel-rclone)[dereuromark/cakephp-file-storage

This plugin is giving you the possibility to store files in virtually any kind of storage backend. This plugin is wrapping the Gaufrette library (https://github.com/KnpLabs/Gaufrette) library in a CakePHP fashion and provides a simple way to use the storage adapters through the StorageManager class.

104.1k](/packages/dereuromark-cakephp-file-storage)

PHPackages © 2026

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