Download the PHP package yoramdelangen/heartqoutes without Composer
On this page you can find all versions of the php package yoramdelangen/heartqoutes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yoramdelangen/heartqoutes
More information about yoramdelangen/heartqoutes
Files in yoramdelangen/heartqoutes
Download yoramdelangen/heartqoutes
More information about yoramdelangen/heartqoutes
Files in yoramdelangen/heartqoutes
Vendor yoramdelangen
Package heartqoutes
Short Description API for getting random qoutes from Heartqoutes
License
Package heartqoutes
Short Description API for getting random qoutes from Heartqoutes
License
Please rate this library. Is it a good library?
Informations about the package heartqoutes
Qoutes
Get a qoute from iHeartqoutes.com through there API. This is wrapper for getting a qoute through the API of iheartqoutes.com.
Installing through composer
The recommanded way to install qoutes is through composer:
composer require yoramdelangen/qoutes
Or add it too the requirements
"yoramdelangen/heartqoutes" : "dev-master"
For stable version
"yoramdelangen/heartqoutes": "1.0.*"
Usage
The following options are implemented and direct from the iheartqoutes API:
max_lines: maximum number of lines in the quote.
min_lines: minimum number of lines in the quote.
max_characters: maximum number of characters in the quote.
min_characters: minimum number of characters in the quote.
These options can be set through the __construct(array $options=[]):
$options = [
'max_lines' => 2,
'max_characters' => 200
];
$qoute = new Qoutes\Qoute($options);
Or chain it through functions:
$qoute = new Qoutes\Qoute();
$qoute->maxLines(2)->minCharacters(40)->maxCharacters(255);
Get certain category or tagged qoute:
// get qoute from all sources
$qoute->get();
// get qoute from a source
$qoute->geeky();
$qoute->general();
$qoute->populair();
$qoute->religious();
$qoute->scifi();All versions of heartqoutes with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
5.2.*
The package yoramdelangen/heartqoutes contains the following files
Loading the files please wait ...