Getting Started

install using composer

composer.phar require 'zweifisch/zf:dev-master'

create a index.php

<?php

require 'vendor/autoload.php';

$app = new zf\App;

/**
 * @param string $name documentation is required!
 * @param string $more
 */
$app->get('/hello/:name', function($name, $more=''){
    return ['hello' => $name.$more];
});

$app->run();

start the built-in php server

php -S 0.0.0.0:5000
curl localhost:5000/hello/zf
# {"hello":"zf"}
curl 'localhost:5000/hello/zf?more=!'
# {"hello":"zf!"}