News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Create Your Own Twitter Widget in PHP, Part 3
January 07, 2011 @ 10:23:59

The SitePoint PHP blog has part three of their "create your own Twitter widget" series posted today. This is the last post of the series and involves a little cleanup on the data pulled from the Twitter API.

In part 1 of this series, we examined the Twitter API, created a PHP TwitterStatus class, and imported the latest tweets in JSON format. In Part 2, we parsed the Twitter data, replaced links, and generated the complete HTML for our widget. In this last post, we'll cache our widget and translate tweet dates into a friendlier format - download the full source code here.

They talk about caching the data pulled back from the API (making it faster and less resource-intensive) and how to parse the dates that you get back from the request using the DateTime functionality included with PHP.

0 comments voice your opinion now!
twitter widget rest api tutorial series cache dates


blog comments powered by Disqus

Similar Posts

DZone.com: The Best Unknown Databases for PHP Apps

Pádraic Brady's Blog: The Factory and Abstract Factory patterns in PHP

Dave Marshall's Blog: How I'm designing a RESTful(ish) web service

Freek Lijten's Blog: OAuth, a practical introduction with examples using the Twitter API

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 2)


Community Events

Don't see your event here?
Let us know!


api example performance laravel podcast application release version community extension opinion framework conference interview symfony2 library series php7 voicesoftheelephpant introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework