tmont / facilius
ASP.NET MVC的PHP版本。有点类似。
1.1.1
2014-01-17 02:12 UTC
Requires (Dev)
- phpunit/phpunit: 3.7.29
This package is not auto-updated.
Last update: 2024-09-24 02:00:18 UTC
README
这是一个将ASP.NET MVC 3ish伪端口到PHP的项目。我之所以写这个,是因为我想这么做。它支持模型绑定、操作过滤器、路由以及其他ASP.NET MVC的好东西。
这更像是一项学术练习,而不是有用的东西,但它实际上工作得相当不错。
安装
使用composer
{ "require": { "tmont/facilius": "1.1.1" } }
Facilius使用PSR-4自动加载,由composer提供支持。以下命令可以正确设置一切:
require_once 'vendor/autoload.php';
使用方法
在example/
目录下有一个示例hello world应用程序,可以在example/中查看。它可能可以正常工作。您可以通过运行(cd example && php -S localhost:8000)
并在浏览器中访问https://:8000/来测试它。
查看example/index.php以了解如何设置应用程序。
开发
git clone git@github.com:tmont/facilius.git cd facilius # run tests ant test # generate code coverage in build/coverage ant coverage