corepos/class-cache

Pack a bunch of PHP classes into one file for faster loading

1.1.0 2017-09-21 18:00 UTC

This package is auto-updated.

Last update: 2024-04-09 06:09:46 UTC


README

Pack a bunch of PHP classes into a single file for faster loading

Usage

$cacheLocation = '/path/to/cache/file.php';
$cache = new COREPOS\ClassCache\ClassCache($cacheLocation);

// cache a class
$cache->add('Class\\To\\Cache');

// load everything in the cache
include($cache->get());