Demo: Open Source Workflow für Webdeveloper (OpenRheinRuhr 2014)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

DO-EPIC-SHIT (Slim + Twig + Redbean)

Demo: Open Source Workflow für Webdeveloper (OpenRheinRuhr 2014)



The instructions below assume you are running a LAMP stack in Ubuntu or any other apt-based distributions. To allow Slim to route with clean path syntax, you need to enable the url rewrite module.

sudo a2enmod rewrite
sudo service apache2 restart

Optionally, if you want to run this demo with the default SQLite database, you need the driver

sudo apt-get install php5-sqlite

Suppose your document root is in /var/www, clone the repository as follows:

cd /var/www
git clone DO-EPIC-SHIT

The required vendor libraries can be installed/updated using Composer. Go to the project root (where you see the file composer.json) and run the following command:

composer install

There are some directories should be made writeable to your web server process.

chmod -R 777 ./app/storage

Then, update your apache config file to set your document root to the web subdirectory. This helps to secure your scripts which should normally be put inside the app/ folder.

<VirtualHost *:80>
	DocumentRoot /var/www/DO-EPIC-SHIT/web

Note that in order to make the .htaccess effective, your main apache config file must allow subdirectory to override it.

<Directory "/var/www">
	AllowOverride All


  • app/ contains all files for your app: models/, controllers/, views/ (Twig templates) and your config/ (configuration). Slim is instantiated in app/start.php
  • vendor/ contains the libraries for your application, and you can update them with composer.
  • web/ is for your assets: js/css/img files. It should be the only folder publically available so your domain should point to this folder. web/index.php bootstraps the rest of the application.

##Writable Directory

  • app/storage/db/ contains SQLite database file.
  • app/storage/cache/twig/ contains the twig template cache.
  • app/storage/logs/ contains the error logs.


This project is inspired from Tieno/SlimPackage and briankiewel/pagodabox-laravel-4.


Software licensed under the MIT license