winnie/winniequote

:Laravel package that generate random quote.

v1.3 2020-10-17 08:30 UTC

This package is auto-updated.

Last update: 2024-11-17 18:04:59 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

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.