winnie / winniequote
:Laravel package that generate random quote.
Requires
- illuminate/support: ^5.5 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3|~4
- phpunit/phpunit: ^8.0
- sempro/phpunit-pretty-print: ^1.0
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.