comphp / filesystem
Virtual mount-based filesystem access and path resolution for PHP applications.
Requires
- php: ^8.5
- comphp/runtime: ^0.3.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpunit/phpunit: ^13.1
This package is auto-updated.
Last update: 2026-05-17 19:34:19 UTC
README
CommonPHP Filesystem provides virtual mount-based filesystem access for CommonPHP applications. It resolves logical paths to one or more real storage locations while keeping file access consistent across applications and packages.
The package gives CommonPHP applications a clean way to work with application storage, package resources, and mounted locations without scattering raw paths throughout the codebase.
Requirements
- PHP
^8.5
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/filesystem
Usage
<?php // TODO: Write usage
Package Notes
This package should own virtual mount points, multiple real locations per mount, file access, path normalization, and storage abstractions. Runtime only provides root-relative path resolution.
Error Handling
Missing mounts, invalid paths, unreadable files, unwritable destinations, and storage failures should throw CommonPHP filesystem exceptions.
Documentation
License
MIT. See LICENSE.md.