3 # required: PHP 5.3+ and zlib extension 6 if (ini_get(
'phar.readonly')) {
7 echo "php.ini: set the 'phar.readonly' option to 0 to enable phar creation\n";
15 $sourceDir = __DIR__ . DIRECTORY_SEPARATOR .
'classes' . DIRECTORY_SEPARATOR .
'src' . DIRECTORY_SEPARATOR;
19 'Author' =>
'Mark Baker <mark@lange.demon.co.uk>',
20 'Description' =>
'PHP Class for working with Matrix numbers',
21 'Copyright' =>
'Mark Baker (c) 2013-' . date(
'Y'),
22 'Timestamp' => time(),
24 'Date' => date(
'Y-m-d')
29 echo "Removed: {$pharName}\n";
33 echo "Building phar file...\n";
41 spl_autoload_register(
function ($className) {
42 include
'phar://' . $className .
'.php';
47 }
catch (PharException $e) {
52 include
'phar://functions/sqrt.php';
58 $phar->compressFiles(Phar::GZ);
if(ini_get('phar.readonly')) $pharName