PHP code example of unicodeveloper / laravel-quotes
1. Go to this page and download the library: Download unicodeveloper/laravel-quotes 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/ */
**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
\Unicodeveloper\Quotes\Commands\Design::class,
\Unicodeveloper\Quotes\Commands\Djkhaled::class,
\Unicodeveloper\Quotes\Commands\Programming::class,
];
/**
* Gets a key to success from DjKhaled
* @returns a string
*/
Quotes::djkhaled()->anotherOne();
/**
* Gets all the Keys To Success #BlessUp
* @returns an array
*/
Quotes::djkhaled()->all()
**
* Gets a programming quote
* @returns a string
*/
Quotes::programming()->random();
/**
* Gets all programming quotes
* @returns an array
*/
Quotes::programming()->all();
**
* Gets a design quote
* @returns a string
*/
Quotes::design()->random();
/**
* Gets all design quotes
* @returns an array
*/
Quotes::design()->all();