Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spacedevin/tipsy
An MVW PHP micro framework
https://github.com/spacedevin/tipsy
framework mvc mvc-framework mvw mvw-framework php php-7
Last synced: 8 days ago
JSON representation
An MVW PHP micro framework
- Host: GitHub
- URL: https://github.com/spacedevin/tipsy
- Owner: spacedevin
- License: mit
- Fork: true (tipsyphp/tipsy)
- Created: 2015-12-10T18:11:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T22:28:51.000Z (about 9 years ago)
- Last Synced: 2024-12-06T16:45:12.723Z (about 2 months ago)
- Topics: framework, mvc, mvc-framework, mvw, mvw-framework, php, php-7
- Language: PHP
- Homepage: http://tipsy.la
- Size: 253 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tipsy is an MVW (Model, View, Whatever) PHP micro framework inspired by [AngularJS](https://angularjs.org/). It provides a very lightweight, easy to use interface for websites, rest apis, and dependency injection.
[![Latest Stable Version](https://poser.pugx.org/tipsyphp/tipsy/v/stable)](https://packagist.org/packages/tipsyphp/tipsy)
[![Build Status](https://travis-ci.org/tipsyphp/tipsy.svg?branch=master)](https://travis-ci.org/tipsyphp/tipsy)
[![Coverage Status](https://coveralls.io/repos/tipsyphp/tipsy/badge.svg?branch=master&service=github)](https://coveralls.io/github/tipsyphp/tipsy?branch=master)
[![Slack Status](https://tipsy-slack.herokuapp.com/badge.svg)](https://tipsy-slack.herokuapp.com/)---
### Example Usage
See [Examples](https://github.com/tipsyphp/tipsy/wiki/Examples) for more detailed examples. See [Documentation](https://github.com/tipsyphp/tipsy/wiki) for more information.
#### View Template Example
###### index.php
```php
$tipsy->router()
->home(function($Scope, $View) {
$Scope->user = 'Mai Tai';
$View->display('hello');
});
```###### hello.phtml
```phtmlHello =$user?>!
```#### API Example
###### index.php
```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](https://github.com/tipsyphp/tipsy/wiki/Installation).```sh
composer require tipsyphp/tipsy
```