PHP code example of davide-casiraghi / php-responsive-random-quote
1. Go to this page and download the library: Download davide-casiraghi/php-responsive-random-quote library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
davide-casiraghi / php-responsive-random-quote example snippets
@import 'vendor/responsive-quotes/responsive-quote';
use DavideCasiraghi\PhpResponsiveRandomQuote\QuoteFactory;
$quote = PhpResponsiveQuote::getRandomQuote();
@ 'quoteAuthor' => $quote['author'],
'quoteText' => $quote['text'],
])
bash
php artisan vendor:publish --force
bash
php artisan migrate