├── examples ├── website │ ├── assets │ │ ├── style.css │ │ └── main.js │ ├── .htaccess │ ├── templates │ │ ├── index.phtml │ │ ├── features.phtml │ │ ├── footer.phtml │ │ ├── contact.phtml │ │ └── header.phtml │ └── index.php ├── classy-rest-api │ ├── index.php │ ├── BookService.php │ └── Application.php ├── hello-world │ └── index.php ├── var-dump │ └── index.php ├── nesting │ └── index.php └── rest-api │ ├── BookService.php │ └── index.php ├── test └── Tests │ └── Moo │ ├── templates │ ├── partial.phtml │ ├── test3.phtml │ ├── test.phtml │ └── test2.phtml │ └── MooTest.php ├── .gitignore ├── Makefile ├── src └── Moo │ ├── Route.php │ ├── Response.php │ ├── Extendable.php │ ├── Request.php │ ├── Template.php │ ├── Router.php │ ├── Moo.php │ └── StatusCode.php ├── phpunit.xml.dist ├── composer.json ├── LICENSE ├── composer.lock └── README.md /examples/website/assets/style.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/Tests/Moo/templates/partial.phtml: -------------------------------------------------------------------------------- 1 | partial -------------------------------------------------------------------------------- /test/Tests/Moo/templates/test3.phtml: -------------------------------------------------------------------------------- 1 | dummy() ?> 2 | -------------------------------------------------------------------------------- /test/Tests/Moo/templates/test.phtml: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | *.log 4 | .phpunit* 5 | /test/results 6 | /vendor 7 | -------------------------------------------------------------------------------- /test/Tests/Moo/templates/test2.phtml: -------------------------------------------------------------------------------- 1 | plugin($var) ?> -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | 3 | test: 4 | XDEBUG_MODE=coverage phpunit --display-warnings --display-notices --display-errors --coverage-html test/results 5 | -------------------------------------------------------------------------------- /examples/website/.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine on 2 | RewriteCond %{REQUEST_FILENAME} !-f 3 | RewriteCond %{REQUEST_FILENAME} !-d 4 | RewriteRule ^.*$ index.php [L,QSA] 5 | -------------------------------------------------------------------------------- /examples/classy-rest-api/index.php: -------------------------------------------------------------------------------- 1 | get('/', function () { 8 | echo "Hello world!"; 9 | }); 10 | 11 | $moo(); 12 | -------------------------------------------------------------------------------- /src/Moo/Route.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |Current date is date() ?>
5 | 6 | -------------------------------------------------------------------------------- /examples/website/templates/features.phtml: -------------------------------------------------------------------------------- 1 | 2 | 3 |