MAIN - the simple PHP framework ## Folder structure ## site: public (the DocRoot of your site) .htaccess (see .htaccess) index.php system (put all system support files in here) lib main classes (store all your model files in here) views (create a folder for each controller and an action.html file for every view) data (a good place to store all your application data, logs, etc) So a typical bootstrap would go something like this: cd mysite mkdir system/lib data public system touch public/index.php data/error.log cd system/lib git clone git://github.com/filipp/main.git cd ../.. mate . ## index.php ## A typical index.php using Main would look like this: ## .htaccess ## Main uses and is developed on using Apache httpd's mod_rewrite module. The .htaccess file in your web app's public root folder should look something like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L]