-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
19 lines (14 loc) · 812 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Oktopus is a PHP5.3+ engine that promotes loosely coupled systems.
At its very core, the Oktopus Engine is a flexible Autoloader BUT there's a LOT more to come, and you'll have to wait to see it in action :-)
For now, if you want the Oktopus to Autoload every classes in your application (whatever framework or library you're using), just do
Using Oktopus sources :
<?php
include ('Oktopus/Engine.class.php');
Oktopus\Engine::start ('/tmp/');//gives the temporary path with write permissions
Oktopus\Engine::autoloader()->addPath('path to autoload');//you can chain addPath
Using Oktopus phar
<?php
include ('oktopus.phar');
Oktopus\Engine::start ('/tmp/');//gives the temporary path with write permissions
Oktopus\Engine::autoloader()->addPath('path to autoload');//you can chain addPath
//That's all folks