Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📦 💯 🔑 🙏 Laravel 5 Package that provides all kinds of quotes from success to programming to life to DJKHALED for your Laravel app!

License

NotificationsYou must be signed in to change notification settings

unicodeveloper/laravel-quotes

Repository files navigation

laravel-quotesLatest Stable VersionLicenseBuild StatusCoverage StatusQuality ScoreTotal Downloads

A Laravel 5 Package for providing all kinds of quotes, from PROGRAMMING to DESIGN to DJKHALED Quotes

Installation

PHP 5.4+ orHHVM 3.3+, andComposer are required.

To get the latest version of Laravel Quotes, simply add the following line to the require block of yourcomposer.json file.

"unicodeveloper/laravel-quotes": "1.0.*"

You'll then need to runcomposer install orcomposer update to download it and have the autoloader updated.

Once Laravel Quotes is installed, you need to register the service provider. Open upconfig/app.php and add the following to theproviders key.

  • Unicodeveloper\Quotes\QuotesServiceProvider::class

Also, register the Facade like so:

'aliases' => [    ...'Quotes' =>Unicodeveloper\Quotes\Facades\Quotes::class,    ...]

Register the Artisan commands by adding this to the$commands array inApp/Console/Kernel.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:

$ php artisan vendor:publish --provider="Unicodeveloper\Quotes\QuotesServiceProvider"

Usage

Get to Use Facades like so:

/** * 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:

php artisan djkhaled:inspire

djkhaled:inspire

php artisan design:inspire

design:inspire

php artisan programming:inspire

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 toQuotes/programming.php andQuotes/design.php. The format are in the files.

Also, add moreDJ KHALED Keys to success that I have omitted or left-out. #BlessUp

Remember: Major 🔑 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 tofollow me on twitter!

Thanks!Prosper Otemuyiwa.

License

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

About

📦 💯 🔑 🙏 Laravel 5 Package that provides all kinds of quotes from success to programming to life to DJKHALED for your Laravel app!

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp