Utility classes and functions to manipulate the FileSystem

1.0.0-beta21 2025-04-11 23:51 UTC

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 folder
  • Fs::removeDir and Fs::removeAllFiles to remove a directory (file by file)
  • Fs::findOne to find a single file matching a pattern
  • Fs::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.