PHPackages                             ak1r0/flysystem-filepathstrategy - 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. ak1r0/flysystem-filepathstrategy

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

ak1r0/flysystem-filepathstrategy
================================

Add a 'File path strategy' to Flysystem. Allow to set globaly how files must be stored.

1.0.0(7y ago)03PHPPHP ^5.4

Since Feb 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Ak1r0/flysystem-filepathstrategy)[ Packagist](https://packagist.org/packages/ak1r0/flysystem-filepathstrategy)[ RSS](/packages/ak1r0-flysystem-filepathstrategy/feed)WikiDiscussions master Synced 2d ago

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

flysystem-filepathstrategy
==========================

[](#flysystem-filepathstrategy)

Add a "File path strategy" to Flysystem. Allow to set globaly how files must be stored.

This is usefull to have the same archive/backup strategy whatever adapter you use.

Todos
-----

[](#todos)

- Units tests
- PHP 7 version

Install
-------

[](#install)

```
composer require ak1r0/flysystem-filepathstrategy

```

Usage
-----

[](#usage)

```
$adapter = new \League\Flysystem\Adapter\Local();
$config = new \League\Flysystem\Config();

$strategy = new \Ak1r0\Flysystem\FilePathStrategy\YearMonthDayStrategy();

$filesystem = new \Ak1r0\Flysystem\Filesystem($adapter, $config, $strategy);

// and then, basic usage.
// For every 'write' method it will automatically add current "/year/month/day/" before your path
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfff3a5aac423e6b6c2c5d5c9833e4982c72f22d339d62c1ebe4613d546c02f6?d=identicon)[4k1r0](/maintainers/4k1r0)

---

Top Contributors

[![Ak1r0](https://avatars.githubusercontent.com/u/7613997?v=4)](https://github.com/Ak1r0 "Ak1r0 (1 commits)")

---

Tags

FlysystemdocumentGED

### Embed Badge

![Health badge](/badges/ak1r0-flysystem-filepathstrategy/health.svg)

```
[![Health](https://phpackages.com/badges/ak1r0-flysystem-filepathstrategy/health.svg)](https://phpackages.com/packages/ak1r0-flysystem-filepathstrategy)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k277.8M965](/packages/league-flysystem-aws-s3-v3)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40331.4M120](/packages/league-flysystem-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

224254.9M71](/packages/league-flysystem-local)[oneup/flysystem-bundle

Integrates Flysystem filesystem abstraction library to your Symfony project.

64223.5M78](/packages/oneup-flysystem-bundle)[barryvdh/elfinder-flysystem-driver

A Flysystem Driver for elFinder

1864.9M40](/packages/barryvdh-elfinder-flysystem-driver)[masbug/flysystem-google-drive-ext

Flysystem adapter for Google Drive with seamless virtual&lt;=&gt;display path translation

2672.0M17](/packages/masbug-flysystem-google-drive-ext)

PHPackages © 2026

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