项目作者: Zifiri

项目描述 :
Simple Factory Php
高级语言: PHP
项目地址: git://github.com/Zifiri/SimpleFactory.git
创建时间: 2018-12-10T14:11:19Z
项目社区:https://github.com/Zifiri/SimpleFactory

开源协议:

下载


SimpleFactory

Basic Factory code for php
Add an automatic class.

Start Php Serve

  1. php -S localhost:portnumber

Add Project

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

Use

Add your class to the classes folder.

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

Output

Test is worked