Example #1
0
 public function option_list($k, $v)
 {
     $plugins = PHPacking_Config::getSupportedPlugins();
     echo 'Supported plugins:' . PHP_EOL;
     foreach ($plugins as $plugin) {
         echo "\t" . PHPacking_Plugin_Factory::createFormat($plugin) . PHP_EOL;
     }
     exit(0);
 }
Example #2
0
#!@php_bin@
<?php 
define('DS', DIRECTORY_SEPARATOR);
define('__INSTALLDIR__', '@php_dir@' == '@' . 'php_dir@' ? __DIR__ : '@php_dir@');
require __INSTALLDIR__ . DS . 'PHPacking' . DS . 'AutoLoader.php';
//Registering the PHPacking Auto Loader function
PHPacking_AutoLoader::register();
//TODO Registering the Error Handler
//Parsing options
$optionsParser = new PHPacking_OptionsParser();
$optionsParser->parseOptions();
$formats = PHPacking_Config::output_format();
foreach ($formats as $format) {
    $builder = PHPacking_Plugin_Factory::createFormat($format);
    $builder->init();
    $builder->execute();
    $builder->finalize();
}