2017 © Pedro Peláez
 

library classloader

Auto loading the missing class while the file's name starts with lowercase char

image

nanjingboy/classloader

Auto loading the missing class while the file's name starts with lowercase char

  • Tuesday, December 16, 2014
  • by Tom
  • Repository
  • 1 Watchers
  • 0 Stars
  • 118 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ClassLoader:

ClassLoader is a tool to auto loading the missing class while the file's name starts with lowercase char., (*1)

Getting Started:

  • Create composer.json file in root directory of your application:
 {
    "require": {
        "php": ">=5.4.0",
        "nanjingboy/classloader": "*"
    }
}

Usage Example:

Imagine the following application structure:, (*2)

application
├── models
│   └─── user.php

If we want to access the class Models\User, we should register a classLoader like this:, (*3)

<?php
require __DIR__ . '/vendor/autoload.php';
$classLoader = new CloassLoader();
$classLoader->addPrefix('Models', __DIR__);
$classLoader->register();

License:

MIT, (*4)

The Versions

16/12 2014

dev-master

9999999-dev https://github.com/nanjingboy/classloader

Auto loading the missing class while the file's name starts with lowercase char

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Tom Huang

autoloader lowercase

16/12 2014

v0.1.1

0.1.1.0 https://github.com/nanjingboy/classloader

Auto loading the missing class while the file's name starts with lowercase char

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Tom Huang

autoloader lowercase

25/10 2014

v0.1.0

0.1.0.0 https://github.com/nanjingboy/classloader

Auto loading the missing class while the file's name starts with lowercase char

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Tom Huang

autoloader lowercase