PHP-Loader 1.0

Provides a class to automatically load classes given by nested directory structures. Does not need any file system checks, should be fast (O(1)).

Requirements:
- PHP 5.3 or higher
- PHP-Cache Library

Specs:
- Run the "run" script in the Specs directory. Expects "php-cache" on the same level as "php-loader"

Example:  
    use Cache\Cache;
    use Loader\Loader;
    $cache = new Cache(..);
    $loader = Loader::create('MainLoader', $cache)->add($pathTo, $namespace)->register();
    new \MyNamespace\MyClass; // Yay!
    $loader->classExists('MyNamespace\MyClass'); // true
    $loader->unregister();

License type: MIT License
Date added: 4 years, 2 months 27 days ago | Last updated: 4 years, 2 months 27 days ago

More popular Utilities & Tools

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

  • phritz.xsd
  • 1.2 KB
  • 09/23/2008 03:54:13
include
lang
  • en.php
  • 2.0 KB
  • 09/23/2008 03:54:12
view
plugins
prefilters
  • .htaccess
  • 1.1 KB
  • 09/23/2008 03:54:12
templates
html
default
Hot Scripts
Sponsors