A versatile PHP library for seamless and portable file and path handling.
π Documentation
Narrative user guides (FR + EN), with examples and security notes:
- π¬π§ English documentation
- π«π· Documentation franΓ§aise
You are currently browsing the auto-generated API reference (phpDocumentor).
π Features
- π Cross-platform path and file utilities β normalize, join, and manipulate file paths with ease.
- π Authenticated file encryption/decryption (AES-256-GCM) powered by OpenSSL.
- ποΈ Create, compress and extract archives (
.tar,.tar.gz,.tar.bz2). - π Recursive file discovery with advanced filters and options.
- π§ͺ 100% unit-test line coverage, ensuring reliability and maintainability.
π¦ Installation
This library requires PHP 8.4+ and is installed via Composer:
composer require oihana/php-files
β Tests & coverage
Run the 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 composer coverage:md
The suite covers 100% of lines (1416/1416). See the testing guide: English Β· FranΓ§ais.
π§Ύ License
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
π€ About the Author
- Name: Marc ALCARAZ (aka eKameleon)
- Website: www.ooop.fr
- Email: marc@ooop.fr
π Related packages
- oihana/php-core β core helpers and utilities used by this library.
- oihana/php-reflect β reflection and hydration utilities.
- oihana/php-enums β strongly-typed constant enumerations.
π Project on GitHub
View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-files.