-
Notifications
You must be signed in to change notification settings - Fork 10
Examples
Devin Smith edited this page Jan 21, 2016
·
33 revisions
use Tipsy\Tipsy;
$app = new Tipsy;
$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=maitai
All 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.
- Home
- Getting Started
- Server Config
- Installation
- Installing Composer
- App
- Route Shorthand
- Config
- Routes
- Methods
- Controller Types
- Params & Regex
- Aliases
- Dependency Injection
- Advanced Routing
- Services
- User Defined Services
- Built in Services
- Middleware
- Views
- Templates
- Scope
- Resource
- Factory
- Looper
- Examples
- Plugins
- About