https://github.com/unicodeveloper/laravel-quotes
:package: :100: :key: :pray: Laravel 5 Package that provides all kinds of quotes from success to programming to life to DJKHALED for your Laravel app!
https://github.com/unicodeveloper/laravel-quotes
Last synced: 9 months ago
JSON representation
:package: :100: :key: :pray: Laravel 5 Package that provides all kinds of quotes from success to programming to life to DJKHALED for your Laravel app!
- Host: GitHub
- URL: https://github.com/unicodeveloper/laravel-quotes
- Owner: unicodeveloper
- License: mit
- Created: 2016-01-27T06:46:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-13T20:24:23.000Z (almost 10 years ago)
- Last Synced: 2025-04-30T16:14:01.846Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 40
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# laravel-quotes

[](https://packagist.org/packages/unicodeveloper/laravel-quotes)

[](LICENSE.md)
[](https://travis-ci.org/unicodeveloper/laravel-quotes)
[](https://coveralls.io/github/unicodeveloper/laravel-quotes?branch=master)
[](https://scrutinizer-ci.com/g/unicodeveloper/laravel-quotes)
[](https://packagist.org/packages/unicodeveloper/laravel-quotes)
> A Laravel 5 Package for providing all kinds of quotes, from PROGRAMMING to DESIGN to DJKHALED Quotes
## Installation
[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.
To get the latest version of Laravel Quotes, simply add the following line to the require block of your `composer.json` file.
```
"unicodeveloper/laravel-quotes": "1.0.*"
```
You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.
Once Laravel Quotes is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.
* `Unicodeveloper\Quotes\QuotesServiceProvider::class`
Also, register the Facade like so:
```php
'aliases' => [
...
'Quotes' => Unicodeveloper\Quotes\Facades\Quotes::class,
...
]
```
Register the Artisan commands by adding this to the `$commands` array in `App/Console/Kernel.php`
```php
**
* 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,
];
```
## Configuration
To get started, you'll need to publish all vendor assets:
```bash
$ php artisan vendor:publish --provider="Unicodeveloper\Quotes\QuotesServiceProvider"
```
## Usage
Get to Use Facades like so:
```php
/**
* 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();
```
Get to use Artisan Commands like so:
```bash
php artisan djkhaled:inspire
```

```bash
php artisan design:inspire
```

```bash
php artisan programming:inspire
```

## Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
You can greatly contribute by adding more quotes to `Quotes/programming.php` and `Quotes/design.php`. The format are in the files.
Also, add more `DJ KHALED` Keys to success that I have omitted or left-out. #BlessUp
###### Remember: Major :key: To Success is to Contribute to Open Source
## How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Don't forget to [follow me on twitter](https://twitter.com/unicodeveloper)!
Thanks!
Prosper Otemuyiwa.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.