# symfony/filesystem

Provides basic utilities for the filesystem

Repository: https://github.com/symfony/filesystem
Canonical: https://ross.abutalabs.com/products/filesystem
Homepage: https://symfony.com/filesystem
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-08-23T10:16:04+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 5353, "days_push": 10, "days_rel": 11, "gap_med": 0, "n_releases_24m": 38}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4634, forks 48 (observed 2026-08-28T04:08:55.393725+00:00)

## What it is
The Symfony Filesystem component is a PHP library providing platform-independent utilities for filesystem operations such as creating, copying, removing, and mirroring files and directories. It also includes a Path class for manipulating and canonicalizing file and directory paths.

## Use cases
- create directories recursively with custom permissions in php
- copy files and directories with exception handling
- mirror a directory tree to another location
- normalize and canonicalize file paths cross-platform
- make a path relative to a base directory
- atomically dump contents to a file
- create symlinks and read their targets

## When to choose
- you need reliable, exception-based filesystem operations in PHP
- you want cross-platform path manipulation utilities
- you are building a Symfony application or use other Symfony components

## When to avoid
- you only need trivial file operations covered by PHP's built-in functions
- you work outside the PHP ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: file-system, developer-tools
- domain: developer-tools, files, cross-platform
- platform: php, cross-platform
- tags: symfony-component, filesystem-utilities, path-manipulation

## Member repositories
- symfony/filesystem (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:55.393725+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:35.286293+00:00, confidence not recorded.
  - readme: https://github.com/symfony/filesystem (fetched 2026-08-28T04:08:55.393725+00:00, sha b09cefb191aa)
  - homepage: https://symfony.com/filesystem (fetched 2026-08-29T09:04:18.102733+00:00, sha 5cb8d84e69fb)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T09:04:18.107891+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/components/filesystem.html (fetched 2026-08-29T09:04:18.109864+00:00, sha d1389d186d3c)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T09:04:18.112020+00:00, sha f109a7a4a5da)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T09:04:18.113873+00:00, sha 35b9da44a68e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
