Registry / utility / symfony-filesystem

symfony-filesystem

JSON →
library8.1.0phppackagistunverified

Provides basic utilities for the filesystem.

composer require symfony/filesystem
INSTALL
IMPORT
SIG · SYMFONY-FILESYSTEM
S
symfony-filesystem
utilityphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Filesystem
use Symfony\Component\Filesystem\Filesystem;

Creates a directory and writes a file using Filesystem.

use Symfony\Component\Filesystem\Filesystem; $filesystem = new Filesystem(); $filesystem->mkdir('/tmp/example'); $filesystem->dumpFile('/tmp/example/file.txt', 'Hello');
Debug
Known issues
gotchaMethods throw exceptions on failure; no silent fallback
fix
Wrap calls in try-catch blocks to handle IOException.
affects: *
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
symfony-filesystem — pip install symfony-filesystem · libregistry