项目作者: Zifiri
项目描述 :
Simple Factory Php
高级语言: PHP
项目地址: git://github.com/Zifiri/SimpleFactory.git
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