2017 © Pedro Peláez
 

library heartqoutes

API for getting random qoutes from Heartqoutes

image

yoramdelangen/heartqoutes

API for getting random qoutes from Heartqoutes

  • Sunday, March 8, 2015
  • by yoramdelangen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Qoutes

Get a qoute from iHeartqoutes.com through there API. This is wrapper for getting a qoute through the API of iheartqoutes.com., (*1)

Installing through composer

The recommanded way to install qoutes is through composer:, (*2)

composer require yoramdelangen/qoutes

Or add it too the requirements, (*3)

"yoramdelangen/heartqoutes" : "dev-master"

For stable version, (*4)

"yoramdelangen/heartqoutes": "1.0.*"

Usage

The following options are implemented and direct from the iheartqoutes API:, (*5)

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=[]):, (*6)

$options = [
    'max_lines' => 2,
    'max_characters' => 200
];
$qoute = new Qoutes\Qoute($options);

Or chain it through functions:, (*7)

$qoute = new Qoutes\Qoute();
$qoute->maxLines(2)->minCharacters(40)->maxCharacters(255);

Get certain category or tagged qoute:, (*8)

// get qoute from all sources
$qoute->get();

// get qoute from a source
$qoute->geeky();
$qoute->general();
$qoute->populair();
$qoute->religious();
$qoute->scifi();

The Versions

08/03 2015

dev-master

9999999-dev

API for getting random qoutes from Heartqoutes

  Sources   Download

The Requires

 

The Development Requires

by Yoram de Langen

08/03 2015

v1.0.1

1.0.1.0

API for getting random qoutes from Heartqoutes

  Sources   Download

The Requires

 

The Development Requires

by Yoram de Langen

08/03 2015

v1.0.0

1.0.0.0

API for getting random qoutes from Heartqoutes

  Sources   Download

The Requires

 

The Development Requires

by Yoram de Langen