Skip to content
An MVW PHP micro framework
PHP Other
  1. PHP 99.5%
  2. Other 0.5%
Branch: master
Clone or download
Pull request Compare This branch is 31 commits behind tipsyphp:master.
Latest commit f2e41a8 Dec 10, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src added yamls config capabilities Dec 9, 2015
tests added resource serialization test Dec 9, 2015
.gitattributes remove tests using gitatributes Nov 29, 2015
.gitignore Added composer support Jul 24, 2014
.travis.yml remove tap for tests Dec 7, 2015
LICENSE Create LICENSE Jul 24, 2014
README.md updated owner Dec 10, 2015
composer.json updated owner Dec 10, 2015

README.md

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.

Latest Stable Version Build Status Coverage Status Slack Status


Example Usage

See Examples for more detailed examples. See Documentation for more information.

View Template Example

index.php
$tipsy->router()
    ->home(function($Scope, $View) {
        $Scope->user = 'Mai Tai';
        $View->display('hello');
    });
hello.phtml
<h1>Hello <?=$user?>!</h1>

API Example

index.php
$tipsy->router()
    ->delete('api/maitai/:id', function($Params) {
        echo json_encode([message => $Params->id]);
    });
DELETE /api/maitai/1
{"message": 1}

Installation

To install using composer use the command below. For additional installation information see Installation.

composer require tipsyphp/tipsy
You can’t perform that action at this time.