Oihana PHP

Oihana PHP Files

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

πŸ“š Documentation

Narrative user guides (FR + EN), with examples and security notes:

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

πŸ”— Related packages

πŸ”— Project on GitHub

View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-files.

Search results