Download the PHP package tuum/respond without Composer
On this page you can find all versions of the php package tuum/respond. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package respond
Short Description helpers and responders for PSR7 http/messages.
License MIT
Informations about the package respond
Tuum/Respond
Tuum/Respond is a framework agnostic PHP module to
help construct a PSR-7 response object, and more.
It provides MVC's "View" functionality as shown in the figure below.
In this figure, the Controller part is managed by the framework
and Tuum/Respond composes a respond object for views
(using template), error pages, and redirects.
License
- MIT license
PSR
- PSR-1, PSR-2, PSR-4, and PSR-7.
Who needs Tuum/Respond?
Micro frameworks with middleware are very simple yet gives a great power on building a web application, but may not provide some useful features such as,
- carries flash messages and csrf token to templates,
- easily handles input values and validation errors,
- standard error templates,
With Tuum/Respond, it will be very easy to implement:
- Post-Redirect-Get pattern,
- use of object as Presenter (or ViewModel),
- filling input values in forms after validation error.
Installation
Installation and Demo Site
Please use the composer to install Tuum/Respond;
Demo
The repository includes a demo site to demonstrate what Tuum/Respond can do. To see the demo site;
- run
composer install, - change directory to
/public, - run
php -S localhost:8000 index.php, and - access
localhost:8000via browser.
Demo with Slim3
There is a demo with Slim3 framework, slim-tuum repository, for more realistic demo.
All versions of respond with dependencies
psr/container Version ^1.0
aura/session Version ~2.0
tuum/form Version ^1.0
willdurand/negotiation Version ^2.0