vector88 / cachefs
CacheFS for PHP
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vector88/cachefs
Requires
- php: >=5.5
This package is not auto-updated.
Last update: 2025-09-28 09:09:20 UTC
README
Cache Filesystem for PHP.
This package is made from code included in Ron Shpasser's GAE Support for Lumen Library (Released under the MIT License).
Installation
composer require vector88/cachefs
Usage
-
Register the
cachefs
stream handler.<?php \Vector88\CacheFS\CacheFS::register();
-
Use the
cachefs
stream handler.<?php $fh = fopen( 'cachefs://some/file', 'w' ); fwrite( $fh, 'file content' ); fclose( $fh ); // ... $fh = fopen( 'cachefs://some/file', 'r' ); $content = fread( $fh, filesize( 'cachefs://some/file' ) ); fclose( $fh );