A skeleton application bringing together Slim Framework, RedbeanPHP, and Twig templates into the MVC pattern. It also has jQuery and Bootstrap baked in for an easier start with responsive design.
SlimRedTwig also has a simple user system that you can use as-is, update it as a base for your own system, or remove it completely. This also provides examples for the MVC setup used, as well as testing with PHPUnit. Which reminds me...
Unit tests are run with PHPUnit. The Tests
directory contains them all, and there is a shell script to run them in the app
directory. It's as easy as ./TestRunner
!
You will need to make sure your server is serving the public
directory, and that cache
is writable by the server. An example for Apache would be:
Alias /srt "path/to/SlimRedTwig/public"
<Directory "path/to/SlimRedTwig/public">
AllowOverride All
Options All
Require all granted
</Directory>
You would then be able to access the app at http://yourhost/srt
. Don't forget to update the .htaccess
file in the public
directory to match the base url to the alias you setup for your app.
Let everyone know on the GitHub Issues for SlimRedTwig.
I welcome contributions as well; just submit your pull request for review!
SlimRedTwig is released under the MIT License, see LICENSE for details.