arzynik/tipsy

This package is abandoned and no longer maintained. The author suggests using the https://github.com/tipsyphp/tipsy package instead.

An MVW PHP framework

Maintainers

Details

github.com/arzynik/tipsy

Source

Installs: 1 261

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 1

Forks: 10

v0.11.1 2014-07-24 00:00 UTC

README

687474703a2f2f74697073792e6c612f696d616765732f636f636b7461696c2e706e67

687474703a2f2f74697073792e6c612f696d616765732f6c6f676f2e706e67

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