PHPackages                             sivka/filesystem - 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. sivka/filesystem

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

sivka/filesystem
================

v1.0.2(7y ago)013MITPHPPHP &gt;=5.6.0

Since Feb 24Pushed 7y agoCompare

[ Source](https://github.com/alexSivka/filesystem)[ Packagist](https://packagist.org/packages/sivka/filesystem)[ RSS](/packages/sivka-filesystem/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Sivka\\Filesystem
=================

[](#sivkafilesystem)

The **real** filesystem abstraction layer. Work easy with filesystem as never before.

Features
--------

[](#features)

- simple api
- filesystem entities as model like objects
- extendable by adapters
- copy, move files and folders inside and between different filesystems by one command
- symlink support (win/unix)
- more...

Installation
------------

[](#installation)

```
composer require sivka/filesystem

```

If you can't use composer [download latest release](%5B./docs/ru/index.md%5D(https://github.com/alexSivka/filesystem/releases)), unpack somewhere in your project and include Autoload.php from `filestem-[version]` folder.

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

[](#requirements)

- PHP 5.6.0+

Example
-------

[](#example)

```
use Sivka\Filesystem as FS;
use Sivka\Filesystem\Adapter\Ftp;

$fs = new FS(); // used local adapter by default

$fs->directory('my-folder')
    ->copyTo('all-folders')
    ->rename('new-folder');

$fs->file('my-folder/1.txt')
    ->moveTo('new-folder')
    ->write('new-text')
    ->append('more text');

// between filesystems

// for local may be used short call
$localDir = FS::get('all-folders/new-folder');

$ftpAdapter = new Ftp([
    'host' => '127.0.0.1',
    'username' => 'user',
    'password' => 'pass',
]);

$ftpFs = new FS($ftpAdapter);

$fptDir = $ftpFs->get('ftp-folder');

$localDir->copyTo($ftpDir, 0744)
        ->createFile('ftp-file.txt', 0644)
        ->write("hello I'm on remote.")
        ->moveTo($localDir)
        ->append("Now I'm in local");
```

Full documentation read here

- [english](./docs/en/index.md)
- [russian](./docs/ru/index.md)

License
-------

[](#license)

This project is licensed under the [MIT License](LICENSE.md)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

Every ~0 days

Total

3

Last Release

2635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dc958a70db32d72289e88ededd1374bf3e9a6da7f9fc5afcb55236a20961363?d=identicon)[alexSivka](/maintainers/alexSivka)

---

Top Contributors

[![alexSivka](https://avatars.githubusercontent.com/u/32399997?v=4)](https://github.com/alexSivka "alexSivka (8 commits)")[![alex-sivka](https://avatars.githubusercontent.com/u/30624922?v=4)](https://github.com/alex-sivka "alex-sivka (3 commits)")

---

Tags

ftpfilesystemabstractionawsfilesfilesystemsremotefile systems

### Embed Badge

![Health badge](/badges/sivka-filesystem/health.svg)

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

###  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)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

2610.5M31](/packages/league-flysystem-async-aws-s3)

PHPackages © 2026

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