Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

nsa-yoda/lazy-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

LazyLoader

A fast, strict lazy loader

Usage

The LazyLoader class is already initialized in the $LazyLoader variable. You must explicitly call $LazyLoader::Register() to init the loader.

require("LazyLoader.php");
$LazyLoader->Register();

There we go, all done! This is the basic usage.

Setting a subdirectory for your classes

Let's say you have all your classes in a directory "Classes/". You can assign this so that LazyLoader searches in that directory by doing the following:

require("LazyLoader.php");
$LazyLoader::SetBaseDirectory("Classes");
$LazyLoader::Register();

About

A fast and strict PHP lazy loader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages