Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.3.3
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.844 kb
<?php
/**
* This script creates .phar archive with all required dependencies.
* Archive usage:
* include("phar://iron_worker.phar");
* or
* include("phar://".dirname(__FILE__)."/iron_worker.phar");
*/
@unlink('iron_worker.phar');
$phar = new Phar('iron_worker.phar');
# Loader
$phar->setStub('<?php
Phar::mapPhar("iron_worker.phar");
require "phar://iron_worker.phar/IronCore.class.php";
require "phar://iron_worker.phar/IronWorker.class.php";
__HALT_COMPILER(); ?>');
# Files
$phar->addFile('../iron_core_php/IronCore.class.php','IronCore.class.php');
$phar->addFile('IronWorker.class.php');
$phar->addFile('LICENSE', 'LICENSE');
echo "\ndone - ".(round(filesize('iron_worker.phar')/1024,2))." KB\n";
# Verification
require "phar://iron_worker.phar";
$worker = new IronWorker('config.ini');
echo "Build finished successfully\n";
Jump to Line
Something went wrong with that request. Please try again.