News Feed
Sections




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

IBM developerWorks:
Hook into Wikipedia information using PHP and the MediaWiki API
August 17, 2011 @ 12:16:25

On the IBM developerWorks site, there's a tutorial from Vikram Vaswani showing you how to connect to Wikipedia's API in your PHP application. It shows how to fetch, search and update entries through their backend. The tutorial's a little bit older (from May 2011) but the content is still relevant.

Wikipedia is the ultimate online encyclopedia, containing millions of entries on different aspects of human knowledge. Web application developers are able to access and search these entries through the Wikipedia API. This article introduces the Wikipedia API and demonstrates it in the context of a PHP application, explaining how to search and retrieve different elements of Wikipedia content with PHP.

He starts with a general introduction to the API including example feed results and URL request formats. From there he moves into the code - a mostly Zend Framework-driven example that uses the REST client. He shows how to make requests for categories, full-text search, grabbing raw page content and adding/editing the content of pages.

0 comments voice your opinion now!
mediawiki api rest client zendframework backend tutorial


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Taking Advantage of Simple Cloud with the Zend Cloud Component

Edin Kadribasic's Blog: PHP 4.4.3 for Windows with 5.0.22 MySQL libraries

Sameer's Blog: Validating POST fields the easy way

Zend Developer Zone: Zend Framework 1.0.2 Released

Silver Lining Blog: How to Enable XDebug in Windows Azure Web Sites


Community Events

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


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

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