fidry/filesystem
A tiny wrapper around Symfony Filesystem offering a FileSystem interface and utilities for path escaping, real and normalized paths, and temporary files and directories, including support for custom stream wrappers.
FileSystemTestCase, FakeFileSystem, and SplFileInfoBuilder to mock filesystem interactions without complex mocks.ReadOnlyFileSystem to enforce immutability in CI/CD pipelines, deployments, or read-heavy applications.readFile() for pre-Symfony 7.1 projects, and run cleanly on Symfony 8 as of v2.0.1 — useful for teams tracking the newest Symfony releases or planning an upgrade path.FileSystem interface) or static FS class for simplicity.createFinder() and SplFileInfoFactory for consistent path handling in tests.Storage facade) or Flysystem, which may overlap with core functionality.SplFileInfo compatibility in tests.For Executives: "This package standardizes filesystem operations across platforms, reducing bugs in file paths (e.g., Windows/Linux) and simplifying testing. It’s a lightweight wrapper around Symfony’s filesystem, adding utilities like temporary file creation and read-only modes—critical for CI/CD and deployments. The latest patch (2.0.1) adds Symfony 8 support, so it stays compatible as we move onto current Symfony releases without extra migration work. Low risk (BSD-3 license, minimal dependencies), and it saves dev time by eliminating custom path-handling logic."
For Engineering: *"Leverage this to:
escapePath(), realPath()) across environments.FakeFileSystem or SplFileInfoBuilder, cutting test setup time by 30%+.How can I help you explore Laravel packages today?