Download the PHP package phore/filesystem without Composer
On this page you can find all versions of the php package phore/filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phore/filesystem
More information about phore/filesystem
Files in phore/filesystem
Package filesystem
Short Description Acces files layer
License MIT
Homepage http://infracamp.org/project/phore
Informations about the package filesystem
phore-filesystem
File access functions
Version 2
Version 2 requires PHP 8.5 or newer and introduces explicit filesystem security policies. New filesystem entry points follow symbolic links by default, matching normal filesystem behavior. With rootDir set, resolved symlink targets must stay inside that root. Root-bound objects carry their security context through derived files, directories, walks and streams.
The current v1 release line remains v1.1.x; this pull request prepares v2.0.0.
- Working with sub-paths
- Checking symbolic links
Installation
Security-first usage
The default is followSymlinks=true. Set rootDir when access must stay inside a bounded tree; symlinks may then be followed only when their resolved target remains inside that root. Use followSymlinks=false for an explicit no-symlink policy.
General usage
will result in
Subpath
Assertions
Reading YAML
Front matter files
Jekyll-style YAML front matter can be read together with the remaining content:
Pass a class name to hydrate the header when phore/hydrator is installed:
Create or replace a front matter file with put_front_matter():
Tempoary Files
Will be unlinked when object destructs.
All versions of filesystem with dependencies
ext-yaml Version *
ext-json Version *
psr/http-message Version ^1.0@dev
phore/core Version *