corepos/class-cache

将多个PHP类打包到一个文件中,以实现更快的加载

1.1.0 2017-09-21 18:00 UTC

This package is auto-updated.

Last update: 2024-09-09 07:03:55 UTC


README

将多个PHP类打包到一个文件中,以实现更快的加载

用法

$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());