transitive/simple

Basic useless View of Transitive MVP framework

Maintainers

Package info

github.com/RobinDumontChaponet/TransitiveSimple

pkg:composer/transitive/simple

Statistics

Installs: 8

Dependents: 1

Suggesters: 0

Stars: 0

2.5.4 2026-05-19 21:40 UTC

This package is auto-updated.

Last update: 2026-05-19 21:43:05 UTC


README

$$ {\displaystyle \forall a,b,c\in X:(aRb\wedge bRc)\Rightarrow aRc} $$

This package provides the lightweight Transitive\Simple implementation that can run on its own when you do not need the web-specific layer.

What is included

  • Transitive\Simple\View: a default in-memory view implementation for titles, typed content, and document serialisation.
  • Transitive\Simple\Front: a minimal front controller that executes routes and can export rendered output.

Installation

composer require transitive/simple

Basic usage

<?php

use Transitive\Core\Presenter;
use Transitive\Simple\View;

$presenter = new Presenter();
$presenter->addData('name', 'Transitive');

$view = new View();
$view->setTitle('Home');
$view->addContent(function (array $data) {
	return 'Hello '.$data['name'];
});
$data = $presenter->getData();
$view->setData($data);

echo $view->getTitle('', '', PHP_EOL);
echo $view->getContent()->asString();

License

MIT