mudge / engine-skeleton
使用 Engine 编写的 Web 应用程序的启动套件
dev-master
2018-01-01 16:07 UTC
Requires
- monolog/monolog: ^1.23
- mudge/engine: dev-master
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is not auto-updated.
Last update: 2024-09-29 04:43:09 UTC
README
这是一个使用Engine编写的 Web 应用程序的启动套件。
当前版本:未发布
支持的 PHP 版本 7.1, 7.2
创建 Engine 项目
$ composer create-project mudge/engine-skeleton:dev-master my-project
运行开发服务器
$ cd my-project $ php -S localhost:8080 -t public
现在转到https://:8080,你应该会看到一个来自 Engine 的欢迎页面。
运行测试
$ ./vendor/bin/phpunit
添加您的代码
- 将您的测试添加到
tests
- 将您的控制器添加到
src
并在public/index.php
中路由请求到它们 - 将您的模板添加到
templates
- 将您的静态文件添加到
public
- 将此 README 替换为对您的应用程序有意义的说明