php web microframework inspired by bottle (python)
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext
mod
tpl
.htaccess
404.php
README.md
boot.php
index.php

README.md

BOTOL

web framework inspired by bottle (http://bottlepy.org) written in PHP


uses external libraries such as :

  • Savant3 for templating
  • RedBean for persistence (optional)
  • PEAR-JSON (optional)

the simplest hello world in botol

  • create any .php file in mod/ folder containing these lines

<?php
route('/hello/:name','hello');
function hello($arg)
{
    echo "hello,".$arg['name'];
}

conventions :

  • put your additional libraries/include codes (.php) in /ext directory
  • put your app codes (.php) in /mod directory
  • put your template codes (Savant3 .tpl files) in /tpl directory