Sample application used for PHPUnit training.
This example code is no production code and should be used for educational purposes only.
Start PHP 5.4's built-in webserver as shown below:
➜ sudo php -S localhost:80 -t htdocs htdocs/router.php
PHP 5.4.8-dev Development Server started at Thu Sep 13 13:22:15 2012
Listening on http://localhost:80
Document root is /usr/local/src/bankaccount/htdocs
Press Ctrl-C to quit.
Now you can access http://localhost/bankaccounts
and http://localhost/bankaccount/id/1
.