搭建简易的PHP框架

我们基于MVC思路编写一个框架 搭建简易的PHP框架

 

 

项目主要基于composer自动加载功能 创建composer.json "autoload": { "psr-4": { "System\\": "system", "Controllers\\": "application/Controllers", "Models\\": "application/Models" } } composer dump-autoload   也可以依靠composer搭建一个极简项目 创建composer.json { "require": { "noahbuscher/macaw": "dev-master", "illuminate/database": "*" }, "autoload": { "classmap": [ ], "psr-4": { "System\\": "system", "Controllers\\": "application/Controllers", "Models\\": "application/Models" } } } composer update composer dump-autoload  
上一篇:.Net Core中间件中IApplicationBuilder.Map()的用法


下一篇:springboot进行controller单元测试