fidry/filesystem
Tiny wrapper around Symfony Filesystem providing a FileSystem interface plus handy extras: path escaping for OS separators, real/normalized real path helpers, and consistent temp file/dir creation (incl. 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 or maintain consistency in tests.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. 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?