A PHP component that provides a better dump() function for inspecting arbitrary variables, as a replacement for var_dump().
symfony/filesystem
A PHP component of basic filesystem utilities for creating, copying, moving, and removing files and directories.
- Stars
- 4,631
- Forks
- 48
- Open issues
- 1
- Last commit
- 3 days ago
What is it?
Filesystem is a PHP component from the Symfony framework that wraps common file and directory operations in a single utility class. It covers tasks PHP's built-in functions handle awkwardly, such as creating directories recursively, copying or mirroring whole trees, and removing paths.
The component is part of the main Symfony monorepo and is published as a standalone Composer package, so it can be used in any PHP project without the rest of the framework. The README points to the Symfony documentation for usage details and to the main repository for issues and pull requests.
Key features
- 01Creates, copies, moves and removes files and directories.
- 02Supports recursive directory operations and mirroring of directory trees.
- 03Installable on its own through Composer, independent of the full Symfony framework.
Use cases
- Managing generated files and cache directories in a PHP application.
- Deploying or syncing directory trees in PHP build or deployment scripts.
- Adding filesystem operations to a PHP CLI tool without writing low-level code.
Topics
FAQ
- What is filesystem?
- A PHP component of basic filesystem utilities for creating, copying, moving, and removing files and directories. Filesystem is a PHP component from the Symfony framework that wraps common file and directory operations in a single utility class. It covers tasks PHP's built-in functions handle awkwardly, such as creating directories recursively, copying or mirroring whole trees, and removing paths.
- Is filesystem free to use? What license does it have?
- filesystem is open source under the MIT license. Check the license terms before using it in commercial products.
- Is filesystem still maintained?
- Actively maintained. The last commit to filesystem was on Nov 4, 2026.
- What can I use filesystem for?
- Managing generated files and cache directories in a PHP application. Deploying or syncing directory trees in PHP build or deployment scripts. Adding filesystem operations to a PHP CLI tool without writing low-level code.
- Where can I get filesystem?
- The source code and installation instructions are on GitHub: https://github.com/symfony/filesystem
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A PHP component that matches incoming HTTP request URLs to route configurations and generates URLs from named routes.
A PHP component for running external commands in sub-processes, with control over input, output and timeouts.
A PHP component for standardizing and centralizing how objects are constructed and wired together in an application.
A pure-PHP fallback that provides a partial implementation of the Mbstring extension for environments where it is not installed.
Dependency manager for PHP that declares, installs and updates project packages from Packagist.