PHPackages                             ambimax/php-lib-file - 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. ambimax/php-lib-file

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

ambimax/php-lib-file
====================

2.1.4(3mo ago)02.3k↓50%PHPPHP &gt;=8.1CI passing

Since Dec 13Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/ambimax/php-lib-file)[ Packagist](https://packagist.org/packages/ambimax/php-lib-file)[ Docs](https://ambimax.de)[ RSS](/packages/ambimax-php-lib-file/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (6)Used By (0)

Ambimax PhpLibrary File
=======================

[](#ambimax-phplibrary-file)

This Library is a abstraction for interactions with files

Remotes
-------

[](#remotes)

Remote are extensions of the base File Class which are used to other systems.

### Implementet Protocols:

[](#implementet-protocols)

- Sftp [SftpFile.php](src/Remote/SftpFile.php)

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

[](#quick-start)

### Installation

[](#installation)

```
composer require ambimax/php-lib-file
```

Basic Usage
-----------

[](#basic-usage)

### Create File Object

[](#create-file-object)

Creating of a File Object goes mostly analogous to [fopen](https://www.php.net/manual/de/function.fopen.php)

**1. Argument:**
fopen compatible filename

**2. Argument:**
FileMode Enum This Enum Cases are the available options of the [fopen](https://www.php.net/manual/de/function.fopen.php) `mode`parameter.

```
use \Ambimax\File\File;
use \Ambimax\File\FileMode;

//                fopenCompatibleFilename   FileMode Enum
$file = new File(     '/tmp/filename'     ,  FileMode::R  );
```

Remotes
-------

[](#remotes-1)

For additional informations on how use this with files that are not in the local filesystem check the [Remotes Documentation](docs/remotes/README.md).

Helper scripts
--------------

[](#helper-scripts)

You can find out more about them [here](docs/tools.md).

Addtitional Documentation
-------------------------

[](#addtitional-documentation)

Add a list of links to additional documentation in `./docs`.

- [Changelog](./CHANGELOG.md)
- [Tools](./tools.md)
- [Plugin Template](plugin-template.md)

Author(s)
---------

[](#authors)

- Fabian Köhnen, [ambimax® GmbH](https://www.ambimax.de)

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance78

Regular maintenance activity

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~284 days

Total

5

Last Release

116d ago

Major Versions

1.0.0 → 2.0.02022-12-14

PHP version history (2 changes)1.0.0PHP &gt;=8.0

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8efdb9ca503ce1ca4d650ae51ba85c9a1cc5de950c9a3947adcbed17df991e78?d=identicon)[tschifftner](/maintainers/tschifftner)

![](https://avatars.githubusercontent.com/u/42027473?v=4)[Fabian Köhnen](/maintainers/FabianKoehnen)[@FabianKoehnen](https://github.com/FabianKoehnen)

---

Top Contributors

[![LeandraMasi](https://avatars.githubusercontent.com/u/70567200?v=4)](https://github.com/LeandraMasi "LeandraMasi (9 commits)")[![FabianKoehnen](https://avatars.githubusercontent.com/u/42027473?v=4)](https://github.com/FabianKoehnen "FabianKoehnen (5 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (5 commits)")[![JonasQuinten](https://avatars.githubusercontent.com/u/40121984?v=4)](https://github.com/JonasQuinten "JonasQuinten (2 commits)")[![pascalckunz](https://avatars.githubusercontent.com/u/37292285?v=4)](https://github.com/pascalckunz "pascalckunz (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ambimax-php-lib-file/health.svg)

```
[![Health](https://phpackages.com/badges/ambimax-php-lib-file/health.svg)](https://phpackages.com/packages/ambimax-php-lib-file)
```

###  Alternatives

[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[hugsbrugs/php-sftp

PHP SFTP Utilities

28144.5k1](/packages/hugsbrugs-php-sftp)

PHPackages © 2026

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