library qotd
Music quotes to inspire your coding
comodojo/qotd
Music quotes to inspire your coding
- Thursday, November 26, 2015
- by comodojo
- Repository
- 3 Watchers
- 0 Stars
- 21 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
comodojo/qotd
, (*1)
Music's quotes to inspire your coding, (*2)
WTF?
It is a component used in comodojo to generate random text for tests or error messages., (*3)
It gets music quotes from file resources/quotes, where each line represent a single quote., (*4)
Installation
-
Using composer:, (*5)
composer require comodojo/qotd 1.*, (*6)
-
Downloading zip from GitHub, (*7)
Extract zip & include src/Qotd.php in your file., (*8)
Usage
-
Getting a simple random quote:, (*9)
// create an instance
$qotd = new \Comodojo\Qotd();
// get a single quote
$quote = $qotd->getQuote();
-
Getting all quotes as array:, (*10)
// create an instance
$qotd = new \Comodojo\Qotd();
// get all quotes
$array_of_quotes = $qotd->getQuotes();
-
Getting all quotes in id/quote store form (useful for client-side stores test):, (*11)
// create an instance
$qotd = new \Comodojo\Qotd();
// get all quotes
$array_of_quotes = $qotd->getQuotesAsStore();
Documentation
Contributing
Fell free to add quotes forking this repo, editing resources/quotes and submitting a pull request., (*12)
License
comodojo/qotd is released under the MIT License (MIT). Please see License File for more information., (*13)