tipsyphp / tipsy
An MVW PHP framework
Requires
- php: >=8.3
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-08-07 07:05:41 UTC
README
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.
Tipsy 2.0 targets PHP 8.3+ with a typed core, zero runtime Composer dependencies, and a PostgreSQL-first database layer (MySQL and SQLite still supported). See UPGRADING.md for breaking changes from 0.11.x.
Example Usage
See examples/ in this repo for runnable apps. See Documentation for more information.
index.php
$app->home(function($View) { $View->display('index', ['user' => 'crystal']); });
index.phtml
<h1>Hello <?=$user?></h1>
Installation
To install using composer use the command below. For additional installation information see Installation.
composer require tipsyphp/tipsy:^2.0
Development
composer install
composer test
CI runs PHP 8.3/8.4 × MySQL/PostgreSQL, then on master/main can open a GitHub prerelease (promote it to publish to Packagist). See docs/RELEASE.md. Performance notes live in benchmarks/.