Пример #1
0
<?php

require_once 'pharao.php';
//Pharao::setDevelop(true);
require_once 'pharao_config.php';
require_once Pharao::getUri('api', 'test.api.php');
require_once Pharao::getUri('lib', 'std.php');
Пример #2
0
 public static function setBaseFolder($folder = NULL)
 {
     $folder = (string) $folder;
     self::$baseFolder = $folder;
 }
Пример #3
0
<?php

require_once 'pharao.php';
require_once 'pharao_config.php';
Pharao::compile();
Пример #4
0
<?php

/**
 * Set the base folder for the phar libraries.
 */
Pharao::setBaseFolder('phar/');
/**
 * Adding all containers and giving them archive names 
 */
Pharao::addPhar("lib", '_dev/lib/');
Pharao::addPhar("api", '_dev/api/');
?>