PHPackages                             oihana/php-files - 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. oihana/php-files

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

oihana/php-files
================

The Oihana PHP Files library

1.2.0(2w ago)081211MPL-2.0PHPPHP &gt;=8.4CI passing

Since Aug 13Pushed 2w agoCompare

[ Source](https://github.com/BcommeBois/oihana-php-files)[ Packagist](https://packagist.org/packages/oihana/php-files)[ Docs](https://github.com/BcommeBois/oihana-php-files)[ RSS](/packages/oihana-php-files/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (15)Versions (4)Used By (11)

Oihana PHP - Files
==================

[](#oihana-php---files)

[![Oihana PHP Files](https://raw.githubusercontent.com/BcommeBois/oihana-php-files/main/.phpdoc/template/assets/images/oihana-php-files-logo-inline-512x160.png)](https://raw.githubusercontent.com/BcommeBois/oihana-php-files/main/.phpdoc/template/assets/images/oihana-php-files-logo-inline-512x160.png)

A versatile PHP library for seamless and portable file and path handling.

[![Latest Version](https://camo.githubusercontent.com/01a4a1d5d9b700b59b6f30665f993b9d406ca0dde8242deedfe7ee07bc354822/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6968616e612f7068702d66696c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-files)
[![Total Downloads](https://camo.githubusercontent.com/9a4f506491bba56e09633102f706ed925dd4cceb839655c889bf782e0204a688/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6968616e612f7068702d66696c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-files)
[![License](https://camo.githubusercontent.com/9634ba459e17e25181691d62e4000dec01bf0b118be2b6defaf9646d62dd7d8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6968616e612f7068702d66696c65732e7376673f7374796c653d666c61742d737175617265)](LICENSE)

📚 Documentation
---------------

[](#-documentation)

User guides (FR + EN), with narrative explanations, examples, and security notes:

🇬🇧 **[English documentation](wiki/en/README.md)**🇫🇷 **[Documentation française](wiki/fr/README.md)**Getting started, paths, files, archives, OpenSSL, TOML, options, enums, tips.Démarrage, chemins, fichiers, archives, OpenSSL, TOML, options, énumérations, astuces.Auto-generated API reference (phpDocumentor):
👉

🚀 Features
----------

[](#-features)

- 📁 Cross-platform path and file utilities — Normalize, join, and manipulate file paths with ease.
- 🔐 File encryption and decryption powered by OpenSSL.
- 🗜️ Create, compress and extract archives (.tar and .tar.gz).
- 📂 Recursive file discovery with advanced filters and options.
- 🧪 Full unit test coverage ensuring reliability and maintainability.

💡 Designed to be lightweight, testable, and compatible with any PHP 8.4+ project.

📦 Installation
--------------

[](#-installation)

> **Requires [PHP 8.4+](https://php.net/releases/)**

Install via [Composer](https://getcomposer.org):

```
composer require oihana/php-files
```

✅ Tests &amp; coverage
----------------------

[](#-tests--coverage)

Run the full unit-test suite (PHPUnit, strict mode):

```
composer test
```

Run a single test case:

```
./vendor/bin/phpunit --filter OpenSSLFileEncryptionTest
```

Measure coverage (requires Xdebug or PCOV):

```
composer coverage        # text + Clover + HTML under build/coverage/
composer coverage:md     # readable Markdown summary (build/coverage/COVERAGE.md)
```

The suite currently covers **100% of lines** (1416/1416). For the testing philosophy, the testability tiers and the `@codeCoverageIgnore` policy, see the detailed guide: **[wiki/en/testing.md](wiki/en/testing.md)** · **[wiki/fr/testing.md](wiki/fr/testing.md)**.

🧾 License
---------

[](#-license)

This project is licensed under the [Mozilla Public License 2.0 (MPL-2.0)](https://www.mozilla.org/en-US/MPL/2.0/).

👤 About the author
------------------

[](#-about-the-author)

- Author : Marc ALCARAZ (aka eKameleon)
- Mail :
- Website :

🛠️ Generate the Documentation
-----------------------------

[](#️-generate-the-documentation)

We use [phpDocumentor](https://phpdoc.org/) to generate the documentation into the ./docs folder.

### Usage

[](#usage)

Run the command :

```
composer doc
```

🔗 Related packages
------------------

[](#-related-packages)

- `oihana/php-core` – core helpers and utilities used by this library: `https://github.com/BcommeBois/oihana-php-core`
- `oihana/php-reflect` – reflection and hydration utilities: `https://github.com/BcommeBois/oihana-php-reflect`
- `oihana/php-enums` – a collection of strongly-typed constant enumerations for PHP.: `https://github.com/BcommeBois/oihana-php-enums`

###  Health Score

49

↑

FairBetter than 94% of packages

Maintenance96

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity56

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

Every ~152 days

Total

3

Last Release

20d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d234506e51778dd3d1d61b6c2af6f294ff963651b4aa509b595d3d2a77b7d89b?d=identicon)[ooop](/maintainers/ooop)

---

Top Contributors

[![ekameleon](https://avatars.githubusercontent.com/u/749032?v=4)](https://github.com/ekameleon "ekameleon (145 commits)")

---

Tags

phppathfiledirectory

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oihana-php-files/health.svg)

```
[![Health](https://phpackages.com/badges/oihana-php-files/health.svg)](https://phpackages.com/packages/oihana-php-files)
```

###  Alternatives

[crysalead/dir

Recursive directory scanner to locate directories and/or files in a file system

16221.5k4](/packages/crysalead-dir)

PHPackages © 2026

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