cybersai/ussd-menu
Composer 安装命令:
composer require cybersai/ussd-menu
包简介
A bare Ussd Menu Builder for most use cases
README 文档
README
A bare Ussd Menu Object Oriented Builder for common use cases.
No Real Documentation for now, but for now you can read the tests.
include 'vendor/autoload.php'; use Cybersai\UssdMenu\UssdMenu; echo UssdMenu::from('Raw Text') // Create a new Instance with that string ->lineBreak(2) // Append Double linebreak ->line('Here comes a list') // Append new text with linebreak ->listing(['Superman', 'Batman', 'IronMan']) // List array using default options ->lineBreak() // Append a linebreak ->text('Bye'); // Finally Append text;
// Output
Raw Text
Here comes a list
1.Superman
2.Batman
3.IronMan
Bye
Installation
composer require cybersai/ussd-menu
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-07