Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.734 kb
* This stub is loaded on every php invocation. It builds an include_path
* based on the nearest Pharkdeps or Pharkspec file, otherwise it uses the
* system-wide activated packages path.
namespace Phark;
require_once __DIR__.'/lib/Phark/ClassLoader.php';
$classloader = new ClassLoader(array(__DIR__.'/lib'));
$includePath = explode(PATH_SEPARATOR, get_include_path());
// either work in project mode or system-wide mode
if($project = Project::locate())
array_unshift($includePath, $project->vendorDir());
$env = new Environment();
array_unshift($includePath, $env->{'active_dir'});
// override the include path
set_include_path(implode(PATH_SEPARATOR, $includePath));
Jump to Line
Something went wrong with that request. Please try again.