<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 18 Mar 2010 06:40:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Google Translation PHP wrapper]]></title>
      <guid>http://www.phpdeveloper.org/news/14119</guid>
      <link>http://www.phpdeveloper.org/news/14119</link>
      <description><![CDATA[<p>
On his Code Diesel blog <i>Sameer Borate</i> has posted about a <a href="http://www.codediesel.com/php/google-translation-php-wrapper">Google Translation wrapper library</a> that can be used to interface with Google's Translation backend.
</p>
<blockquote>
Google translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. I recently needed to create a Wordpress plugin to translate post titles from one language to another. As the translation API is only available for Java and Javascript, I decided to create a quick one for PHP. 
</blockquote>
<p>
You'll need to register for <a href="http://code.google.com/apis/ajaxsearch/signup.html">an API key</a> before you can follow along with the examples. <i>Sameer</i> includes a few small code snippets showing how to run a "self test" to be sure things are working, a sample translation of a string and how to grab errors should they happen during the process. You can grab the library from <a href="http://code.google.com/p/google-translate-php-wrapper/">the Google Code page</a> for the project.
</p>]]></description>
      <pubDate>Wed, 03 Mar 2010 08:56:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Integrating Flickr Photostreams with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13969</guid>
      <link>http://www.phpdeveloper.org/news/13969</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's a new tutorial showing you how to <a href="http://devzone.zend.com/article/11775-Integrating-Flickr-Photostreams-with-PHP-using-the-Zend-Framework">integrate your application with Flickr</a> with some help from components in the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
Like many Web 2.0 applications, Flickr exposes its data to the public via a REST API, making it possible to develop customized applications that run on top of the base service. This REST API allows access to a number of important functions, including photo searching, tagging and uploading; photoset retrieval; contact retrieval; and panda recommendations.
</blockquote>
<p>
The tutorial uses the Zend_Rest_Client component of the Zend Framework to make the actual request to the Flickr API and you'll need a <a href="http://www.flickr.com/services/api/keys/">API key/shared secret</a> to be able to use it. The rest of the tutorial is code dedicated to helping you connect to the service, fetch data, search the API (and output the results), and looking at some of the "interestingness" magic Flickr has to share.
</p>]]></description>
      <pubDate>Thu, 04 Feb 2010 12:22:46 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Joey Rivera's Blog: Using Zend_Paginator with Twitter API and Zend_Cache]]></title>
      <guid>http://www.phpdeveloper.org/news/13935</guid>
      <link>http://www.phpdeveloper.org/news/13935</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Joey Rivera</i> looks at using the <a href="http://www.joeyrivera.com/2010/using-zend_paginator-with-twitter-api-and-zend_cache/">Zend_paginator component with Twitter and APC</a> to create a cachable, paged view of a set of Twitter API results.
</p>
<blockquote>
I'm going to focus more on Zend_Paginator and Zend_Rest_Client to access Twitters API since I've already created a post on <a href="http://www.joeyrivera.com/2009/caching-using-phpzend_cache-and-mysql/">Zend_Cache</a>. Normally, I would use <A href="http://framework.zend.com/manual/en/zend.service.twitter.html">Zend_Service_Twitter</a> to access the twitter service but it still seems to require authentication to retrieve a users timeline where <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline?SearchFor=statuses&sp=2">only protected users</a> should require authentication.
</blockquote>
<p>
He includes all of the needed code including the bootstrap.ini file and his own custom Twitter service class that grabs the timeline of the given user and calls the REST interface to grab the latest posts and caches them to a file.
</p>]]></description>
      <pubDate>Fri, 29 Jan 2010 10:54:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Giulio Pons' Blog: Facebook Connect Tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/13868</guid>
      <link>http://www.phpdeveloper.org/news/13868</link>
      <description><![CDATA[<p>
<i>Giulio Pons</i> has posted <a href="http://www.barattalo.it/facebook-connect-tutorial/">a great tutorial</a> for anyone looking to hook their application into the Facebook Connect technology.
</p>
<blockquote>
This tutorial will guide you to the process of integration of your web community with Facebook. This means that when a visitor comes to your site it can log in with normal credentials if it has, but if it has not it can click on the "facebook connect" button and try to log in with its facebook account, automatically.
</blockquote>
<p>
You'll need to register the application with Facebook before getting started and get an API key you can use to work with their backend. With the help of the <a href="http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz">Facebook-provided libraries</a> and a file for the cross-domain interaction (a xd_receiver file) you can use the code he's provided to allow the user to log in with their Facebook username/password and it be mapped to a user on your local application.
</p>]]></description>
      <pubDate>Tue, 19 Jan 2010 12:46:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: Search for photos using PHP and the flickr API]]></title>
      <guid>http://www.phpdeveloper.org/news/13708</guid>
      <link>http://www.phpdeveloper.org/news/13708</link>
      <description><![CDATA[<p>
On the Web Development Blog there's <a href="http://www.web-development-blog.com/archives/search-for-photos-using-php-and-the-flickr-api/">a recent post</a> about connecting your PHP application with the <a href="http://flickr.com">Flickr</a> API to search for photos with the help of a simple class.
</p>
<blockquote>
We will be using the php function "file_get_contents" to receive data from flickr. The data which we will receive will be a serialized PHP array which means all we need to do is unserialize the array and we will easily be able to use the data returned. As an alternative we can use a cURL function to get the data, for example if the function "file_get_contents" is not allowed on your web host.
</blockquote>
<p>
They show how to get your API key from the Flickr website and the sample code that you'll need to make a GET request (with <a href="http://php.net/file_get_contents">file_get_contents</a>) and an example of a loop displaying the response.
</p>]]></description>
      <pubDate>Mon, 21 Dec 2009 15:16:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[RIAZone: Integrating PHP with Flash Collaboration Services]]></title>
      <guid>http://www.phpdeveloper.org/news/13672</guid>
      <link>http://www.phpdeveloper.org/news/13672</link>
      <description><![CDATA[<p>
On the RIA Zone (a part of the <a href="http://dzone.com">DZone</a> network) there's <a href="http://ria.dzone.com/articles/php-flash-rest">a new tutorial</a> from <i>Ryan Stewart</i> about combining PHP with the Flash Collaboration Services (real-time collaboration and social capabilities via the LCCS) in the second part of his series (<a href="http://php.dzone.com/articles/integrating-php-flash">part one</a>).
</p>
<blockquote>
Another great way to integrate LCCS and PHP is with the REST APIs and the library that ships with the LCCS SDK. With those APIs we can perform a number of management functions including creating and deleting rooms, managing roles, and creating templates. These APIs make it very easy to create a customized, dynamic collaboration experience with PHP. You can create rooms on the fly for your users and get information about what kind of content is in those rooms. In this example we're going to create a basic room manager with PHP that will let us create, delete, and view information about specific rooms.
</blockquote>
<p>
Code is included to use the AFCS PHP library to connect to the Services API and pass in the username and password directly from the user. The request is made and a token is passed back to the calling script. The XML description of the full Flex application is included in <a href="http://php.dzone.com/articles/integrating-php-flash">the tutorial</a>.
</p>]]></description>
      <pubDate>Mon, 14 Dec 2009 13:47:28 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ibuildings Blog: New white paper: Introducing Service APIs]]></title>
      <guid>http://www.phpdeveloper.org/news/13671</guid>
      <link>http://www.phpdeveloper.org/news/13671</link>
      <description><![CDATA[<p>
<a href="http://www.ibuildings.co.uk/blog/archives/1580-New-white-paper-Introducing-Service-APIs.html">Mentioned on the Ibuildings blog</a> today is a <a href="http://www.ibuildings.co.uk/resources/whitepapers/service-apis">new white paper</a> (contact details required for download) from <i>Ivo Jansch</i>, the CTO of Ibuildings about creating service APIs for your web-based applications.
</p>
<blockquote>
Every company starts with a single website or web application, but as a company's online presence grows, many different applications and sites are deployed. With a traditional approach of treating each of these applications as separate solutions, a number of problems occur [...] Service APIs can help you reuse a set of common functionality, which is implemented only once into the service layer. They can also help integrate third party applications in a consistent and robust way, and work around possible performance limitations.
</blockquote>
<p>
The <a href="http://www.ibuildings.co.uk/resources/whitepapers/service-apis">whitepaper</a> covers the differences between the traditional development model and how the service model changes how you think about your backend. He covers implementation, development, documentation, testing methods and general maintenance down the line.
</p>]]></description>
      <pubDate>Mon, 14 Dec 2009 12:09:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sara Golemon's Blog: Heads up, PHP 5.3's Module API is not Backward Compatible]]></title>
      <guid>http://www.phpdeveloper.org/news/13653</guid>
      <link>http://www.phpdeveloper.org/news/13653</link>
      <description><![CDATA[<p>
<i>Sara Golemon</i> <a href="http://blog.libssh2.org/index.php?/archives/135-guid.html">has a bit of a warning</a> for those extension developers moving between PHP 5.2 and 5.3 - the Module API isn't 100 percent compatible.
</p>
<blockquote>
Unlike PHP, C generally resolves function calls at compile time. When you introduce dynamically loadable shared objects, the ability to know their exact address ahead of time goes out the window [...] One of the things that makes this unnecessarily slower is libraries which export a lot of symbols which aren't needed outside of the file they were defined in.
</blcokquote>
<p>
Because of some of the lazy ways of extension developers (well, some of them) there's been issues with some extensions not making things static when they should be. To counteract the problems this can cause, the PHP 5.3 developers changed the macros to expand out to static instead of const.
</p>]]></description>
      <pubDate>Thu, 10 Dec 2009 07:52:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jeez Tech: Using APIs With PHP? Here Are Your Classes]]></title>
      <guid>http://www.phpdeveloper.org/news/13582</guid>
      <link>http://www.phpdeveloper.org/news/13582</link>
      <description><![CDATA[<p>
Jeez Tech has <a href="http://jeez.eu/2009/11/23/using-apis-with-php-here-are-your-classes/">a new post</a> with a great (and long) list of PHP scripts to connect your application to any number of popular APIs out there.
</p>
<blockquote>
Do you want to use an API but you are too lazy to write your own code to handle the requests? If you code in PHP as I do, then you will definitely need these classes. By using the classes listed here you will be able of using a great number of web services with an easy and documented way.
</blockquote>
<p>
They link to libraries to work with the APIs for Alexa, Babelfish, Bing, eBay, Facebooks, Flickr, Linkedin, MSN, Twitter, Skype and Yahoo. They also mention <a href="http://pear.php.net/packages.php?catpid=23&catname=Web+Services">PEAR</a> and the role it plays in the foundation of many web service connections.
</p>]]></description>
      <pubDate>Tue, 24 Nov 2009 09:57:53 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPEveryday.com: Facebook API Tutorials]]></title>
      <guid>http://www.phpdeveloper.org/news/13533</guid>
      <link>http://www.phpdeveloper.org/news/13533</link>
      <description><![CDATA[<p>
On the PHPEveryday.com site there's two new articles looking at interacting with the Facebook API to grab information about its users. In <a href="http://www.phpeveryday.com/articles/Facebook-Programming-API-Friends-P851.html">the first article</a> they look at getting friend information and in <a href="http://www.phpeveryday.com/articles/Facebook-Programming-API-Events-P852.html">the other</a> they look at getting events.
</p>
<blockquote>
Facebook is an incredible site. At the time this tutorial was written, this site reaches ranking second only to Google in the achievement of visitors. What does it mean? Facebook could attract so many visitors. This site even has defeated Friendster friendship site that had been rampant.
</blockquote>
<p>
These articles are parts four and five of a series, here's the rest - parts <a href="http://www.phpeveryday.com/articles/Facebook-Programming-Facebook-Platform-P845.html">one</a>, <a href="http://www.phpeveryday.com/articles/Facebook-Programming-My-First-Facebook-Application-P847.html">two</a> and <a href="http://www.phpeveryday.com/articles/Facebook-Programming-Facebook-API-P850.html">three</a>.
</p>]]></description>
      <pubDate>Fri, 13 Nov 2009 13:14:10 -0600</pubDate>
    </item>
  </channel>
</rss>
