Tipsy is an MVW (Model, View, Whatever) PHP micro framework inspired by AngularJS. It provides a very lightweight, easy to use interface for websites, rest apis, and dependency injection.
See Examples for more detailed examples. See Documentation for more information.
$tipsy->router()
->home(function($Scope, $View) {
$Scope->user = 'Mai Tai';
$View->display('hello');
});
<h1>Hello <?=$user?>!</h1>
$tipsy->router()
->delete('api/maitai/:id', function($Params) {
echo json_encode([message => $Params->id]);
});
{"message": 1}
To install using composer use the command below. For additional installation information see Installation.
composer require tipsyphp/tipsy