redrat/presenthor
最新稳定版本:0.2.0
Composer 安装命令:
composer require redrat/presenthor
包简介
The crazy presenter pattern library
README 文档
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.
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-08