Facilius
, (*1)
This is a pseudo-port of ASP.NET MVC 3ish to PHP. I wrote it
because I wanted to. It supports model binding, action filters,
routing and all of the other good(ish) stuff about ASP.NET MVC., (*2)
It was more of an academic exercise than anything useful,
but it actually does work pretty well., (*3)
Installation
Use composer:, (*4)
{
"require": {
"tmont/facilius": "1.1.1"
}
}
Facilius uses PSR-4 autoloading, facilitated by composer. So the following
will set everything up properly:, (*5)
require_once 'vendor/autoload.php';
Usage
There is an example hello world app in example/. It
probably works. You can test it by running (cd example && php -S localhost:8000)
and visiting http://localhost:8000/ in your browser., (*6)
Take a look at example/index.php to see how to set up the app., (*7)
Development
git clone git@github.com:tmont/facilius.git
cd facilius
# run tests
ant test
# generate code coverage in build/coverage
ant coverage