2017 © Pedro Peláez
 

library quotily

A package to retrieve quotes from various Quotes APIs

image

tmdroid/quotily

A package to retrieve quotes from various Quotes APIs

  • Wednesday, May 17, 2017
  • by TMDroid
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Quotily

Quotily is a PHP package that helps you get famous quotes from various quote-serving APIs, (*1)

APIs Supported:

  • Random Famous Quotes - click
  • Bestquotes - click
  • Quotes on Design - click
  • Programming Quotes API - click

Usage

";

$quotily = new Quotily(Supported::$BEST_QUOTES, $apikey);
$quote = $quotily->getOneQuote();

var_dump($quote);
?>

Sample output from var_dump, (*2)

class TMDroid\Quote#31 (5) {
  private $serviceName =>
  string(30) "Random Famous Quotes - Mashape"
  private $quote =>
  string(111) "Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws."
  private $author =>
  string(5) "Plato"
  private $length =>
  int(111)
  private $genre =>
  string(6) "Famous"
}

class TMDroid\Quote#31 (5) {
  private $serviceName =>
  string(20) "Bestquotes - Mashape"
  private $quote =>
  string(104) "But if you don't watch me, I will try and sneak in some humor. I see humor everywhere in life around me."
  private $author =>
  string(11) "Marion Ross"
  private $length =>
  int(104)
  private $genre =>
  string(5) "humor"
}

Support

If you want to have any other APIs listed in here too leave me a reply or, why not, submit a pull-request., (*3)

Thanks! :), (*4)

The Versions

17/05 2017

dev-master

9999999-dev

A package to retrieve quotes from various Quotes APIs

  Sources   Download

The Requires

 

by Daniel Bejan