Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Like Sinatra.rb, but in PHP.
PHP
Tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.htaccess
README
frank.php
index.php

README

Frank.php is a clone of Sinatra.rb. It's much like the default version of Sinatra, with a few things missing (because php is stupid, or because I haven't gotten around to it yet).

What Frank.php is missing:
1. Spiffy template languages like haml and sass.
2. Middleware.
3. Error handling besides not_found(function(){});
4. Environments
5. Testing
6. Regex routes, or using "*" in routes. For now, just use :whatever and passing, and you should be all set.

Here is Sinatra's hello world:
require 'sinatra'

get "/" do
	"Hello, World"
end

And here is Frank.php's hello world:
require 'frank.php';

get("/", function(){
	echo "Hello, World";
});

As you can see, they're fairly similar. Check out index.php for more examples.
Something went wrong with that request. Please try again.