PHP Classes

PHP Get Author Quotes: Retrieve author quotes from TellMeQuotes.com

Recommend this page to a friend!
  Info   Example   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 91 All time: 9,935 This week: 524Up
Version License PHP version Categories
author-quotes 1.0GNU General Publi...5.0PHP 5, Text processing, Web services
Description 

Author

This class can retrieve author quotes from TellMeQuotes.com.

It can send a HTTP request to the tellmequotes.com site and retrieve quotes of an author given his identifier.

The class decodes the response and returns the text of the quote.

Picture of Vivek moyal
  Performance   Level  
Name: Vivek moyal is available for providing paid consulting. Contact Vivek moyal .
Classes: 7 packages by
Country: India India
Age: ???
All time rank: 35519 in India India
Week rank: 28 Up2 in India India Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Example

<?php
include_once './authorQuoteClass.php';
$author=new authorQuoteClass();
$authorid=5;
$key="";

$obj=$author->getAuthorQuote($authorid,$key);
$alert="API Status - ".$obj->{"alert"}."</br>";
$alert.="Author Name - ".$obj->{"AuthorName"}."</br>";
$alert.="Author Id - ".$obj->{"AuthorId"}."</br>";
$alert.="Author Quote - ".$obj->{"Quote"};
print_r($alert);



  Tell Me QuotesExternal page  
  Files folder image Files (2)  
File Role Description
Plain text file authorQuoteClass.php Class class file to fetch data
Accessible without login Plain text file index.php Example example file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:91
This week:0
All time:9,935
This week:524Up
User Comments (1)