<?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>Tue, 21 May 2013 20:25:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: NinjAuth: The Social Integration Package PHP has been dying for]]></title>
      <guid>http://www.phpdeveloper.org/news/16872</guid>
      <link>http://www.phpdeveloper.org/news/16872</link>
      <description><![CDATA[<p>
New on his blog <i>Phil Sturgeon</i> has a post about the <a href="http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php">social integration package PHP has been dying for</a> - <a href="https://github.com/philsturgeon/fuel-ninjauth">NinjAuth</a>. It has hooks for OAuth and OAuth2 connections and makes it simple to use them completely abstracted.
</p>
<blockquote>
In the past I have never needed to implement oAuth into a PHP project. I have done it in Rails and boy it was easy thanks to OmniAuth. <a href="https://github.com/intridea/omniauth">OmniAuth</a> abstracts away so much of the grunt work that it takes about 5 minutes to add a new social network to your site, and 4 of those minutes are spent signing up for the API keys. What options do we have in the world of PHP? A bunch of screwy hacks or provider specific classes like TwitterOAuth. I don't want to hunt down 20 libraries with different methods, I want to get a key, bang it in and go to the pub. Well, now I can!
</blockquote>
<p>
The <a href="https://github.com/philsturgeon/fuel-ninjauth>NinjaAuth</a> system allows a user to have multiple "authentications" groups under it corresponding to various social networking sites. It uses the <a href="https://github.com/fuel-packages/fuel-oauth">fuel-oauth</a> and <a href="https://github.com/fuel-packages/fuel-oauth2">fuel-oauth2</a> packages to drive its backend. He includes <a href="http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php">a code snippet</a> showing how to configure the providers (complete with keys needed for auth) including Facebook, Flickr, GitHub, YouTube and - of course - Twitter. You can grab the latest version of this library from <a href="https://github.com/philsturgeon/fuel-ninjauth">Phil's github account</a>.
</p>]]></description>
      <pubDate>Mon, 19 Sep 2011 08:59:31 -0500</pubDate>
    </item>
  </channel>
</rss>
