Download the PHP package davide-casiraghi/php-responsive-random-quote without Composer
On this page you can find all versions of the php package davide-casiraghi/php-responsive-random-quote. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davide-casiraghi/php-responsive-random-quote
More information about davide-casiraghi/php-responsive-random-quote
Files in davide-casiraghi/php-responsive-random-quote
Package php-responsive-random-quote
Short Description A package that shows responsive random quotes
License MIT
Informations about the package php-responsive-random-quote
Laravel Reponsive Random Quotes
Show a random quote or the quote of the day in your PHP Laravel project.
The package support multi language trough dimsav/laravel-translatable and mcamara/laravel-localization packages.
Installation
Require the package using composer:
Publish the files from the service provider
And then pick the number of the related service provider.
Create the DB tables
This will create in your databases two new tables: quotes and quote_translations.
Import the _responsive-quote.scss file in /resources/scss/app.scss
and then run in console:
Usage
Add quotes to the database table
The package adds in the application in which it is installed the route /php-responsive-quote/
From this route it's possible to add, edit and remove the quotes and their translations.
Show a random quote
Then in any blade file is possible include the view like this:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Testing
You can run unit tests checking the code coverage using this command.
So you can find the reports about the code coverage in this file /html/index.html
License
MIT
All versions of php-responsive-random-quote with dependencies
nesbot/carbon Version ^2.17
mcamara/laravel-localization Version ^1.3
astrotomic/laravel-translatable Version ^11.1