redrat / presenthor
The crazy presenter pattern library
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/redrat/presenthor
Requires
- php: >=7.2
 - ext-json: *
 
Requires (Dev)
- phpunit/phpunit: ^8.4
 - squizlabs/php_codesniffer: *
 - symfony/var-dumper: ^4.3
 
This package is auto-updated.
Last update: 2025-10-13 20:54:36 UTC
README
The crazy presenter pattern library
First question, why?
Because I'm a polemic person and I don't like serializes. Serialize is good? Yes, but for me, in many times is a big solution to solve a little problem.
Okay, how to install then?
Easy my friend, install from composer
composer require redrat/presenthor
How to use?
This library is separated in two parts, an Item and Bag.
All parts implements OutputInterface, then output array or json in string.
Item
An Item basically contains a data that will output array or json and you should to implement in your project based on ItemInterface or ItemInjectableInterface.
Bag
A Bag is a collection of ItemInterface and you can implement yours based on ItemBagInterface or use ItemBag implemented in this library.
Example
You can view an implementation example in https://github.com/joubertredrat/presenthor-example.