PHPackages                             projek-xyz/slim-flysystem - 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. projek-xyz/slim-flysystem

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

projek-xyz/slim-flysystem
=========================

Access your Slim 3 application file system using FlySystem.

51441[3 PRs](https://github.com/projek-xyz/slim-flysystem/pulls)PHPCI passing

Since Mar 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/projek-xyz/slim-flysystem)[ Packagist](https://packagist.org/packages/projek-xyz/slim-flysystem)[ RSS](/packages/projek-xyz-slim-flysystem/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

[![Version](https://camo.githubusercontent.com/fb4de7f5abc083bd67e22aba2ad655d72c5acf0834d0535306881dbff94d4a20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f6a656b2d78797a2f736c696d2d666c7973797374656d3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/projek-xyz/slim-flysystem)[![Lisence](https://camo.githubusercontent.com/1cc209a77dd93b40f031438396eca02feb61b98dfa504eb295b54ace71ce164c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70726f6a656b2d78797a2f736c696d2d666c7973797374656d3f7374796c653d666c61742d737175617265)](https://github.com/projek-xyz/slim-flysystem/blob/main/LICENSE)[![Actions Status](https://camo.githubusercontent.com/749d25539698041d2eb5daeffd33017cad4d827b4f344f21e796c3c2ed608741/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70726f6a656b2d78797a2f736c696d2d666c7973797374656d2f746573742e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/projek-xyz/slim-flysystem/actions)[![Coveralls](https://camo.githubusercontent.com/34f65b29a6d2ed4141d10f5b916d40659bbbedb2d40feafeb7d7b66a4504c052/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f70726f6a656b2d78797a2f736c696d2d666c7973797374656d2f6d61737465722e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f766572616c6c73)](https://coveralls.io/github/projek-xyz/slim-flysystem)[![Code Climate](https://camo.githubusercontent.com/7189b37c50f2b8ca0dad5850752b6864aed41bb70b5dab321388049964cf4b01/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f70726f6a656b2d78797a2f736c696d2d666c7973797374656d2e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f64652d636c696d617465)](https://codeclimate.com/github/projek-xyz/slim-flysystem/coverage)[![Maintainability](https://camo.githubusercontent.com/c4ec633b7badd37bcfa6b3d6ef7cdc500d173b59d15f1b0f42642344ae871087/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f70726f6a656b2d78797a2f736c696d2d666c7973797374656d3f7374796c653d666c61742d737175617265266c6f676f3d636f64652d636c696d617465)](https://codeclimate.com/github/projek-xyz/slim-flysystem/maintainability)[![SymfonyInsight Grade](https://camo.githubusercontent.com/2639458a24520371479ce558246005882db8ca0ccbe6de5301c92391c00fe185/68747470733a2f2f696d672e736869656c64732e696f2f73796d666f6e792f692f67726164652f38343736363261362d373162382d346537622d616531362d6437663938623765616538303f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79)](https://insight.symfony.com/projects/847662a6-71b8-4e7b-ae16-d7f98b7eae80)

FlySystem Integration for Slim micro framework 3
================================================

[](#flysystem-integration-for-slim-micro-framework-3)

Access your Slim 3 application file system using FlySystem.

Install
-------

[](#install)

Via [Composer](https://getcomposer.org/)

```
$ composer require projek-xyz/slim-flysystem --prefer-dist
```

Requires Slim micro framework 3 and PHP 5.5.0 or newer.

Usage
-----

[](#usage)

```
// Create Slim app
$app = new \Slim\App();

// Fetch DI Container
$container = $app->getContainer();

// Register FlySystem helper:
// Option 1, using FlysystemProvider
$container->register(new \Projek\Slim\FlysystemProvider);

// Option 2, using Closure
$container['fs'] = function ($c) {
    $fs = new \Projek\Slim\Flysystem([
        'local' => [
            'path' => 'path/to/your/resources',
        ]
    ]);

    return $fs;
};

// Define named route
$app->get('/hello/{name}', function ($request, $response, $args) {
    // Read a file.
    $this->fs->read('path/to/file');

    return $response;
});

// Run app
$app->run();
```

**NOTE**: if you are using *option 1* please make sure you already have `$container['settings']['filesystem']` in your configuration file.

Custom functions
----------------

[](#custom-functions)

Description soon.

### `aFunction()`

[](#afunction)

Description soon.

```
// ...
```

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CONDUCT.md) for details.

License
-------

[](#license)

This library is open-sourced software licensed under [MIT license](LICENSE.md).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance59

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.6% 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/16384dbbd6cd66f33f13f5bf2dc7f26125049762c7414eb0e755c630375240ba?d=identicon)[feryardiant](/maintainers/feryardiant)

---

Top Contributors

[![feryardiant](https://avatars.githubusercontent.com/u/508665?v=4)](https://github.com/feryardiant "feryardiant (45 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")

---

Tags

flysystemslim-3slimphp

### Embed Badge

![Health badge](/badges/projek-xyz-slim-flysystem/health.svg)

```
[![Health](https://phpackages.com/badges/projek-xyz-slim-flysystem/health.svg)](https://phpackages.com/packages/projek-xyz-slim-flysystem)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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