Skip to content

spacedevin/tipsy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 31 commits behind tipsyphp:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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

Packages

No packages published

Languages

  • PHP 99.5%
  • Other 0.5%