Skip to content

Zifiri/SimpleFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleFactory

Basic Factory code for php Add an automatic class.

Start Php Serve

php -S localhost:portnumber

Add Project

require_once  __DIR__ ."/vendor/autoload.php";

Use

Add your class to the classes folder.

use App\factory;
$test = factory::load("testme");

Output

Test is worked