PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 91 This week: 1All time: 9,908 This week: 571Up
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: 35820 in India India
Week rank: 25 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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:91
This week:1
All time:9,908
This week:571Up
User Comments (1)