📅  最后修改于: 2022-03-11 14:54:52.688000             🧑  作者: Mango
define('ZF2_PATH', '/path/to/zf2/library');
require_once ZF2_PATH . '/Zend/Loader/StandardAutoloader.php';
$loader = new Zend\Loader\StandardAutoloader(array(
'autoregister_zf' => true,
));
$loader->register();