Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 11
Examples
Devin Smith edited this page Jan 21, 2016
·
33 revisions
useTipsy\Tipsy;
$app = newTipsy;
$app->get('home', function($View) {
$View->display('home', [user => 'crystal']);
});<h1>Hello <?=$user?></h1>$app->post('drink/:id', function($Params, $Request, $Maitai) {
$Maitai
->load($Params->id)
->serialize($Request->request())
->save();
echo$Maitai->json()
});POST /drink/1?rating=5&name=maitaiAll example code is provided in their own repo with 1 click deployments provided free by Heroku.
- tipsyphp/tipsy-hello-world - A very simple Tipsy example using Apache.
- tipsyphp/tipsy-example-blog - An example blog using view templates, MySQL and Nginx/Apache.
- tipsyphp/tipsy-example-mvc - An MVC (Model View Controller) structured example using Apache and phtml
- arzynik/squirrelly - A direct from clipboard image & text sharing tool using MySQL/PostgreSQL, Nginx, and AngularJS.
- arzynik/beerplease, arzynik/beerplease/tree/icecream - A customizable single page payment system using Stripe API on Nginx or Apache.
- arzynik/pulpoloco - A permalink capable MySQL/PostgreSQL URL shortener utilizing Tipsy's Static shorthand methods and AngularJS.