2017 © Pedro Peláez
 

library toby

Put 'ol Toby in your pipe and smoke it. A micro web framework similar to Sinatra that makes PHP fun again.

image

toby/toby

Put 'ol Toby in your pipe and smoke it. A micro web framework similar to Sinatra that makes PHP fun again.

  • Thursday, March 26, 2015
  • by tamagokun
  • Repository
  • 1 Watchers
  • 8 Stars
  • 321 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Old Toby

Making PHP development fun again., (*1)

The finest Leaf in the Southfarthing is also a web framework similar to Sinatra., (*2)

Built on Rack'em., (*3)

Setting Up

Toby works best with Composer. Add it to your composer.json, (*4)

{
  "require": {
      "toby/toby": "dev-master"
    },
    "minimum-stability": "dev"
}
$ composer install

Hello World

get('/',function() {
    return "

Hello World!

"; }); return $app->run(); ?>
$ vendor/bin/rackem
$ open http://localhost:9393

Check out the manual

What we have so far

  • routing (DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT)
  • route matching ($app->get("/hello/:name");)
  • render templates and layouts
    • currently supported: php,mustache,markdown,haml
  • conditions and filters
  • redirection
  • halting
  • passing routes
  • error handling (error not_found halt(500))
  • logging via Rackem\Logger
  • settings
  • configure blocks (global and per environment)
  • completely Rack complient (using Rack'em)
  • serving static files
  • handling file uploads
  • handling sessions ($app->enable("sessions");)
  • flash messaging ($app->flash("error","Gah! Something happened!");)

What needs doing

  • support for more templating engines. (twig, jade, etc.)

The Versions

26/03 2015

dev-master

9999999-dev http://github.com/tamagokun/toby

Put 'ol Toby in your pipe and smoke it. A micro web framework similar to Sinatra that makes PHP fun again.

  Sources   Download

MIT

The Requires

 

framework route web sinatra rackem

10/09 2014

v0.2

0.2.0.0 http://github.com/tamagokun/toby

Put 'ol Toby in your pipe and smoke it. A micro web framework similar to Sinatra that makes PHP fun again.

  Sources   Download

MIT

The Requires

 

framework route web sinatra rackem

20/12 2013

v0.1

0.1.0.0 http://github.com/tamagokun/toby

Put 'ol Toby in your pipe and smoke it. A micro web framework similar to Sinatra that makes PHP fun again.

  Sources   Download

MIT

The Requires

 

framework route web sinatra rackem