Yahoo! Language centers have been deprecated. If you have any concerns or questions, please don't hesitate to contact us in General Discussion at YDN forum.
From simple scripts to enterprise-class Web applications, PHP is one of the most popular programming languages in the world. This site is your source for information about using PHP with Yahoo! Web Services APIs. Here you'll find:
There are many ways probably too many ways to use PHP to access, parse, and cache Yahoo! Web Service requests. In these articles, we give you our recommendations and suggestions for thoughtful and efficient PHP usage. Both PHP4 and PHP5 are covered.
HOWTO: Make Yahoo! Web Service REST Calls with PHP: Should you use
fsockopen, or something else? Here are some thoughts on the subject.
HOWTO: Parse Yahoo! Web Service REST Calls with PHP: Yahoo! Web Services return XML. Some can also return JSON and Serialized PHP. We recommend techniques for parsing and accessing all of these data types.
HOWTO: Cache Yahoo! Web Service REST Calls with PHP: Caching is essential for performance and reliability. There are many ways to cache data and we offer up a couple of them.
Sometimes it's easiest to learn by looking at what other people have done. In this section we've included code samples written by us and others to help you get up to speed with Yahoo! Web Services.
Unless otherwise noted, all the folllowing code samples are provided under the terms of the Yahoo! SDK Software License Agreement.
Cut to the chase and drill down to what matters. These working code samples, which are used in our HOWTO's above, can get you started quickly.
PEAR: PHP Extension and Application Repository. A vast set of libraries designed for PHP programmers. Many useful libraries including ones for SOAP and XML manipulation.
PHP Classes Repository : A library of PHP classes. Great for object-oriented programming projects.
PHP Extension Community Library (PECL) : A large repository of PHP extensions.
Code samples using OAuth Authorization:
In this section you'll find links to external sites and articles that may be useful as you work with Yahoo! APIs and Web Services with PHP.
www.php.net : Sector Zero-Zero of PHP — the place to find definitive PHP documentation and news.
PHP Builder : A popular site with many PHP tutorials and code samples.
Sitepoint : Makers of fine books and tutorials on PHP and other Web development tools.
Zend Developer Zone : Tutorials and code samples from some of PHP's core developers.
Planet PHP : PHP News aggregator with up-to-date news about PHP from blogs and other sources.
PHP Resource Index: Hundreds of links to PHP scripts and resources.
Top 7 PHP Security Blunders : An overview of common PHP security mistakes that programmers make.
PHP5 SOAP Extension : An overview of PHP5's SOAP extension by the extension's author.
Using XML: A PHP Developer's Primer: A series of articles discussing XML manipulation using PHP.
Discuss how to work with the Yahoo! Web Services and other APIs using PHP on the ydn-php mailing list. Please note that this is not a general PHP programming questions list; try to keep your questions focused to discussion about the Yahoo! APIs.
We also provide individual lists for each of the Web services and APIs we support; your questions are always welcome there as well. See the Yahoo! Developer Network Community page for more information on these mailing lists.