Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Not using Composer?

Marc edited this page Aug 31, 2014 · 1 revision

If you are not using Composer and still want to use all without including all classes?

use like below sample (assuming the Browser folder in the same folder as your project, otherwise you might want to change the include within the __autoload function to match your location.

function __autoload($class_name)   
{
    $class_name = str_replace("\\","/", $class_name);
    include $class_name . '.php';
}

use Browser\Browser;

$browser = new Browser;

echo $browser->getName();
Clone this wiki locally