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.0.0(9mo ago)01256MPL-2.0PHPPHP &gt;=8.4CI passing

Since Aug 13Pushed 3mo 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 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (6)

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)

Full project documentation is available at:
👉

🚀 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
```

✅ Running Unit Tests
--------------------

[](#-running-unit-tests)

To run all tests:

```
composer run-script test
```

To run a specific test file:

```
composer run test ./tests/oihana/files/OpenSSLFileEncryptionTest.php
```

🧾 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

39

—

LowBetter than 86% of packages

Maintenance70

Regular maintenance activity

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

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

278d 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 (86 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

[blueimp/jquery-file-upload

File Upload widget for jQuery.

141.5M18](/packages/blueimp-jquery-file-upload)[crysalead/dir

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

13214.5k4](/packages/crysalead-dir)

PHPackages © 2026

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