collectivism/autoloader

dev-master 2014-08-23 08:49 UTC

This package is not auto-updated.

Last update: 2025-03-25 05:22:07 UTC


README

Installation

Add this to your composer.json and run composer install.

  "require": {
    "collectivism/autoloader": "dev-master"
  }

Usage

use \Collectivism\Autoloader;

$autoloader = Autoloader::getInstace();

$classMap = array(
  'Namespace1\\SubNamespace1' => __DIR__ .
  '/Namespace1/SubNamespace1',
  'Namespace2\\SubNamespace2' => __DIR__ .
  '/Namespace2/SubNamespace2',
);

$autoloader->register($classMap);