Utility classes and functions to manipulate the FileSystem
1.0.0-beta21
2025-04-11 23:51 UTC
Requires
- php: >=8.1
- micheldiemer/mbstring: ^1
- psr/log: ^3.0
This package is auto-updated.
Last update: 2026-03-12 01:54:56 UTC
README
Provides static methods :
Fs::into loop (optionnaly recursively) in all files in a folderFs::removeDirandFs::removeAllFilesto remove a directory (file by file)Fs::findOneto find a single file matching a patternFs::grepto find text in a file
Installation
composer require micheldiemer/fs
Contributions
phpdoc, phplint, phpstan and php-cs-fixer are required globally.
Contributions are welcome either as a GitHub issue or a PR to this repo.