cion/laravel-inspirational-quotes

php artisan inspire on steroids.

1.0 2019-06-12 01:10 UTC

This package is auto-updated.

Last update: 2024-12-12 13:43:19 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads StyleCI

This package will generate an inspirational quote for you. Similar to Laravel's default php artisan inspire, it includes the same quotes plus more. Easily access the author name and author head shot as well.

Installation

You can install the package via composer:

composer require cion/laravel-inspirational-quotes

The service provider and alias will automatically get registered.

Usage

php artisan inspire
$quote = InspirationalQuote::getRandomQuote();

// $quote output
[
    'quote' => 'Simplicity is the ultimate sophistication.',
    'by' => 'Leonardo da Vinci',
    'avatar' => 'https://i.imgur.com/fk7VpK6.png',
]

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email chris@cion.agency instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.