tipsyphp/tipsy

An MVW PHP framework

Maintainers

Package info

github.com/tipsyphp/tipsy

pkg:composer/tipsyphp/tipsy

Transparency log

Statistics

Installs: 2 393

Dependents: 4

Suggesters: 0

Stars: 60

Open Issues: 16

v2.0.0 2014-07-24 00:00 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.

Latest Stable Version CI codecov

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/.