PHPExcel/Build/PharStub.php

14 lines
306 B
PHP
Raw Permalink Normal View History

2012-12-19 14:50:49 +04:00
<?php
spl_autoload_register(function ($class) {
include 'phar://PHPExcel/' . str_replace('_', '/', $class) . '.php';
});
try {
Phar::mapPhar();
include 'phar://PHPExcel/PHPExcel.php';
} catch (PharException $e) {
error_log($e->getMessage());
exit(1);
}
__HALT_COMPILER();