Skip to Content Skip to Search Go to Top Navigation Go to Side Menu
Search on Site

ClassLoader

Introduction

A PHP5 class that simplifies (hopefully) the dynamic loading of class definition files and adds a memetic namespace of dubious value.

Installation

Both versions are the same and require PHP5.

Usage

Treat this like the import directive in Java. So, to import a file:

  1. ClassLoader::import(‘packageName.className’)

Or to import a folder of files:

  1. ClassLoader::import(‘packageName.*’)

Your class files should be named according to the following convention: ClassName.php, ClassName.class.php, ClassName.interface.php or similar, and be in folders. Edit the variable ClassLoader::$className to reflect your setup. Enjoy!

Changelog

Version 0.1

Initial release. Probably quite badly broken.

Popularity: 1% [?]