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: 2025-07-12 00:20:13 UTC
README
Provides static methods :
Fs::in
to loop (optionnaly recursively) in all files in a folderFs::removeDir
andFs::removeAllFiles
to remove a directory (file by file)Fs::findOne
to find a single file matching a patternFs::grep
to 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.