Total Pageviews

Friday, 10 January 2014

Bogart: Sinatra for PHP


This is Bogart, Sinatra for PHP. We can't be as consise as Ruby, but can at least try.

Installation

Try this first:
git clone git@github.com:thrashr888/Bogart-sandbox.git project_folder
cd project_folder

git submodule add git@github.com:thrashr888/Bogart.git vendor/Bogart/
git submodule init
git submodule update --init --recursive
You can find the Bogart library code here:
https://github.com/thrashr888/Bogart
Place the Bogart library code into vendor/Bogart.
Set your docroot to /public and point your browser to http://localhost/.
This will get easier, I'll update this readme when I get that worked out. I'll also add a method that should play nice on shared servers in which the docroot cannot be set.

Examples

  • index.php routes for showing off Bogart's features
  • hello.php hello world
  • login.php log in and log out
  • post.php blog posts
  • assets.php css and js assets

Requires

  • PHP 5.3
  • MongoDB
from https://github.com/thrashr888/Bogart-sandbox-shared
https://github.com/thrashr888/Bogart