<?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>Fri, 24 May 2013 21:21:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Microsoft Bing Translation PHP wrapper]]></title>
      <guid>http://www.phpdeveloper.org/news/16825</guid>
      <link>http://www.phpdeveloper.org/news/16825</link>
      <description><![CDATA[<p>
In a new post to his blog today <i>Sameer Borate</i> spotlights <a href="http://www.codediesel.com/php/microsoft-bing-translate-php-wrapper/">a translation wrapper for Bing</a> that lets you easily use their API to translate text or determine what language the given text is in.
</p>
<blockquote>
Microsoft Language translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. The given class provides a PHP wrapper which will help developers translate text from one language to another in a easy manner. The library also supports caching, helping you keep your translations fast and simple.
</blockquote>
<p>
<a href="http://www.codediesel.com/downloads/bing-php">His translation library</a> requires an <a href="http://www.bing.com/developers/createapp.aspx">AppId</a> for configuration and cURL to handle the messaging back and forth. Translation is as easy as calling "translate()" on a string, language fetching with "LanguageNames()" and even converting the text to speech with the "speak()" method.
</p>]]></description>
      <pubDate>Wed, 07 Sep 2011 09:43:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Translating Twitter, part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/16419</guid>
      <link>http://www.phpdeveloper.org/news/16419</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has posted the second part of his look at <a href="http://derickrethans.nl/translating-twitter-part2.html">translating twitter</a> as a part of his PHP-GTK Twitter client <a href="http://derickrethans.nl/projects.html#haunt">Haunt</a>. Because of the deprecation route Google chose for its translation API, he needed a change to another service - the <a href="http://www.microsoft.com/web/post/using-the-free-bing-translation-apis">Bing Translation API</a>.
</p>
<blockquote>
A while ago I wrote in <a href="http://derickrethans.nl/translating-twitter.html">an article</a> about translating tweets in my client <a href="http://derickrethans.nl/projects.html#haunt">Haunt</a>. For the translating itself I was using the Google Translate API, which has sadly be <a href="http://googlecode.blogspot.com/2011/05/spring-cleaning-for-some-of-our-apis.html">deprecated</a>. Evil after all I suppose. I've now rewritten my translation code to use the <a href="http://www.microsoft.com/web/post/using-the-free-bing-translation-apis">Bing Translation APIs</a> instead. You need to register an API key (see <a href="http://www.bing.com/developers/appids.aspx%29">http://www.bing.com/developers/appids.aspx</a>) to be able to use the APIs. The APIs that I am using are fairly simple though.
</blockquote>
<p>
Also included in <a href="http://derickrethans.nl/translating-twitter-part2.html">the post</a> is some sample code showing how to make the request to this new API and the results from the requests.
</p>]]></description>
      <pubDate>Thu, 02 Jun 2011 11:28:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Aaron McGowan' Blog: Geocoding search terms with Bing Maps]]></title>
      <guid>http://www.phpdeveloper.org/news/15447</guid>
      <link>http://www.phpdeveloper.org/news/15447</link>
      <description><![CDATA[<p>
<i>Aaron McGowan</i> has a new post to his blog that looks at the work he's done <a href="http://www.amcgowan.ca/blog/computer-science/geocoding-search-terms-with-bing-maps/">interfacing with the Bing Maps API</a> to do some geocoding for <a href="http://www.emitter.ca/">Emitter.ca</a>.
</p>
<blockquote>
One of the key features which was required for Emitter.ca, was the ability to geocode search terms like street addresses, cities, and postal codes, that a user enters so that Emitter.ca could easily return facilities that are nearby. To do this, we leveraged Bing Maps's API for performing the Geocode lookup. Microsoft offers a variety of APIs for allowing your application to interact with Bing Maps, however, for Geocoding search terms, we utilized Bing's SOAP API.
</blockquote>
<p>
He shares the class he uses to pull the information out of the Bing Maps SOAP response and push the details into the properties of a class. The simpel class made interfacing with the API an easy task and allowed for string-based lookups on just about anywhere (like "Toronto, Ontario").
</p>]]></description>
      <pubDate>Wed, 17 Nov 2010 12:28:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect: Bing Powered 404 for non-WordPress websites]]></title>
      <guid>http://www.phpdeveloper.org/news/14664</guid>
      <link>http://www.phpdeveloper.org/news/14664</link>
      <description><![CDATA[<p>
Following up on his <a href="http://blog.calevans.com/2010/06/01/bing-search-api-wrapper-for-php/">Bing 404 plugin for WordPress</a> article, <i>Cal Evans</i> has put together an example for those <a href="http://www.phparch.com/2010/06/17/bing-powered-404-for-non-wordpress-websites">not using WordPress</a> to accomplish the same thing.
</p>
<blockquote>
I had several people tell me that while they liked the idea, they didn't want to install WordPress just so they can have intelligent 404 errors. Several other people pinged me and suggested a way that you could use the Bing Search API to handle 404's without WordPress. As a public service, I am going to try and bridge the gap between these two groups. Going on leads provided by friends, I have hammered out a solution that works with Apache and PHP. 
</blockquote>
<p>
The solution uses a custom 404 page (as set in Apache) that pulls in the "top ten" links from the current site as reported back by the Bing.com search engine. With the help of <a href="http://bingphp.codeplex.com/">the API</a> making a request and getting back an object to loop through is simple. This could easily be adapted to accept terms based on the content page that they were trying to find or some keywords based on your site's content.
</p>]]></description>
      <pubDate>Thu, 17 Jun 2010 09:10:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect Blog: WordPress 404 Plugin built on Bing Wrapper ]]></title>
      <guid>http://www.phpdeveloper.org/news/14610</guid>
      <link>http://www.phpdeveloper.org/news/14610</link>
      <description><![CDATA[<p>
Based on a <a href="http://blog.calevans.com/2010/06/01/bing-search-api-wrapper-for-php/">recent plugin</a> he's developed, <i>Cal Evans</i> has posted <a href="http://www.phparch.com/2010/06/04/wordpress-404-plugin-built-on-bing-wrapper">this new tutorial</a> on how to use it in a 404 plugin for WordPress to give the visitor more relevant information even when they don't find what they wanted.
</p>
<blockquote>
One of the things I've always hated about WordPress is the stock 404 error message. Out of the box, WordPress just tells users "I'm sorry, I can't find what you are looking for." Granted it is better than the stock Apache 404 page but it isn't much more helpful. Having just finished working on the Bing Search Wrapper for PHP, the best use case I could think of for the wrapper was to solve this particular problem. This is how I helped Microsoft's Interoperability team to put together the Bing 404 Plugin for WordPress.
</blockquote>
<p>
He includes two ways to do it - either <a href="http://www.phparch.com/2010/06/04/wordpress-404-plugin-built-on-bing-wrapper/">watch the video</a> for a quickstart or you can follow the "gory details" on how it all works and how/where to implement it in your WordPress insallation's code.
</p>]]></description>
      <pubDate>Mon, 07 Jun 2010 09:45:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans' Blog: Bing Search API wrapper for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14590</guid>
      <link>http://www.phpdeveloper.org/news/14590</link>
      <description><![CDATA[<p>
In conjunction with some of the folks over at <a href="http://mocrosoft.com">Microsoft</a> <i>Cal Evans</i> has <a href="http://blog.calevans.com/2010/06/01/bing-search-api-wrapper-for-php/">created a search wrapper</a> around the Bing search engine's API to make interacting with it from your PHP applications simpler.
</p>
<blockquote>
Back in March I had the opportunity to work on a project for Microsoft that is now coming to light. I was tasked with writing a PHP wrapper for the Bing API that Microsoft has been building. <a href="http://devzone.zend.com/article/1069-Consuming-Webthumbs-API-in-PHP">I've written API wrappers before</a> and it is either a fun experience or it is a nightmare, depending on whether the API is easy to work with. I am pleased to report that the Bing Search API is well thought out and very easy to work with. For PHP developers, I am hoping that what I am about to show you makes it even easier.
</blockquote>
<p>
You'll need <a href="http://www.bing.com/developers/createapp.aspx">an API key</a> to use the interface, but the rest is simple. You just create an instance of the search object, pass it a query and sun the "search" method to return the results. <i>Cal</i> has an example snippet of code in his blog.
</p>]]></description>
      <pubDate>Wed, 02 Jun 2010 10:53:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Dev+Mocha Blog: Bing API PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12678</guid>
      <link>http://www.phpdeveloper.org/news/12678</link>
      <description><![CDATA[<p>
From the Dev+Mocha blog (routecafe.com) there's <a href="http://routecafe.com/posts/bing-api-php.moccha">a post showing off an API</a> to let your PHP scripts interface with the <a href="http://bing.com/">Bing.com</a> site from Microsoft.
</p>
<blockquote>
Well, since the opening of <a href="http://bing.com/">bing.com</a> I've been playing with the API and some of the options it provides. Certainly I was getting annoyed since I had to rebuild each of my queries if I wanted something so I search for a library that could do this for me which I couldn't find and I ended up writing my own.
</blockquote>
<p>
His API allows for a fluent interface to interact with Bing and grab the results from a search. The example given searches the site for "gimp" and returns the first ten values in an XML format. You can download the API <a href="http://routecafe.com/bingapiphp-1.0.zip">here</a>.
</p>]]></description>
      <pubDate>Fri, 12 Jun 2009 12:09:29 -0500</pubDate>
    </item>
  </channel>
</rss>
