winnie/winniequote
Composer 安装命令:
composer require winnie/winniequote
包简介
:Laravel package that generate random quote.
README 文档
README
Laravel package that generates random programming quotes.
Installation
Via Composer
$ composer require winnie/winniequote
Add service provider at config/app.php if you're using Laravel 5.4 and below. Latest Laravel versions have auto dicovery and automatically add service provider.
'providers' => [ ... Winnie\\WinnieQuote\\WinnieQuoteServiceProvider::class ... ];
Publish config files.(optional) If you want to add your own quote just add it at the last row of array at config/winniequote.php or you can fork this package and contribute.
$ php artisan vendor:publish --provider="Winnie\WinnieQuote\WinnieQuoteServiceProvider"
Usage
Helper function
{{ quote_programming() }} //generate single random quote echo quote_programming(); //generate single random quote {{ quote_programming(2) }} //generate 2 random quotes in array form echo quote_programming(3); //generate 3 random quotes in array form
Facade
{{ WinnieQuote::programming() }} //generate single random quote echo WinnieQuote::programming(); //generate single random quote {{ WinnieQuote::programming(4) }} //generate 4 random quotes in array form echo WinnieQuote::programming(5); //generate 5 random quotes in array form
Change log
Please see the changelog for more information on what has changed recently.
Todo
Create test
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-01