Commit fc23e053 authored by Joshua Thijssen's avatar Joshua Thijssen

Added PHAR creation

parent ad6bcdbc
The buildphar.php will generate a solarium.phar PHAR file that is ready for distribution.
<?php
// Create a new htrouter phar file
@unlink('solarium.phar');
$phar = new Phar('solarium.phar', 0, 'solarium.phar');
$phar->setStub(file_get_contents("stub.php"));
$basePath = realpath(__DIR__."/../library/Solarium");
$phar->buildFromDirectory($basePath, '/\.php$/');
<?php
Phar::mapPhar("solarium.phar");
require_once 'phar://solarium.phar/Autoloader.php';
Solarium_Autoloader::register();
__HALT_COMPILER();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment