<?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, 24 May 2012 09:18:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Hasin Hayder's Blog: Developing PHP applications in the cloud with free cloud hosting providers]]></title>
      <guid>http://www.phpdeveloper.org/news/17035</guid>
      <link>http://www.phpdeveloper.org/news/17035</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> has <a href="http://hasin.wordpress.com/2011/10/21/developing-php-applications-in-the-cloud-with-these-free-cloud-hosting-providers/">put together a list of cloud hosting providers</a> that are already set and ready to go for PHP applications. His list highlights a few of the <a href="http://en.wikipedia.org/wiki/Freemium">free</a> ones.
</p>
<blockquote>
I will be focusing on some of these free cloud hosting options available out there. One thing to note before you proceed - these free cloud hosting options are very good to develop and test your applications (in dev+staging environment) and it may not be wise to deploy the production version of your application with any free plan (Except Amazon AWS's free tier, its production ready).
</blockquote>
<p>
He has four different services on his list, ranging anywhere from small to industrial strength, depending on your needs:
</p>
<ul>
<li><a href="http://aws.amazon.com/">Amazon's AWS</a>
<li><a href="http://phpfog.com/">PHPFog</a>
<li><a href="http://www.phpcloud.com/">PHPCloud</a> (from Zend)
<li><a href="http://heroku.com/">Heroku</a> (traditionally Ruby, now supports PHP too)
</ul>]]></description>
      <pubDate>Tue, 25 Oct 2011 09:42:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell' Blog: PHP OAuth Provider: Access Tokens]]></title>
      <guid>http://www.phpdeveloper.org/news/16788</guid>
      <link>http://www.phpdeveloper.org/news/16788</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted the latest in her look at OAuth in PHP to her blog today, an <a href="http://www.lornajane.net/posts/2011/php-oauth-provider-access-tokens">introduction to access tokens</a> - generating and handling them in your application.
</p>
<blockquote>
I've been working with <a href="http://oauth.net/">OAuth</a>, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. [...] This entry follows on from the ones about the <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Initial-Requirements">initial requirements</a>, <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Request-Tokens">how to how to handle request tokens</a>, and <a href="http://www.lornajane.net/posts/2011/php-oauth-provider-authenticate-user">authenticating users</a>.
</blockquote>
<p>
In this latest post, she talks about the three different types of tokens - consumer, request and verififier - and how to use them to locate a user in your app's users. Her code validates the request token and verifier against the database and, if successful, inserts the rest of the token information for the user.
</p>]]></description>
      <pubDate>Tue, 30 Aug 2011 08:28:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stas Malyshev's Blog: ZF Oauth Provider]]></title>
      <guid>http://www.phpdeveloper.org/news/16783</guid>
      <link>http://www.phpdeveloper.org/news/16783</link>
      <description><![CDATA[<p>
In a new post <i>Stas Malyshev</i> has <a href="http://php100.wordpress.com/2011/08/28/zf-oauth-provider/">shared some code for an OAuth provider</a> he's written up to work specifically with <a href="http://framework.zend.com">Zend Framework</a> applications. 
</p>
<blockquote>
Zend Framework has pretty good <a href="http://en.wikipedia.org/wiki/OAuth">OAuth</a> <a href="http://framework.zend.com/manual/en/zend.oauth.introduction.html">consumer implementation</a>. However, it has <a href="http://stackoverflow.com/questions/4061435/zend-framework-oauth-provider">no support</a> for implementing OAuth provider, and it turns out that there aren't many <a href="http://stackoverflow.com/questions/6086454/pure-php-oauth-provider">other libraries</a> for it. Most examples out there base on <a href="http://php.net/oauth">PECL oauth extension</a>, which works just fine, with one caveat - you have to have this PECL extension installed, while ZF implementation does not require that. So I went ahead and wrote <a href="https://github.com/smalyshev/Zend_OAuth_Provider">some code that allows to easily add OAuth provider to your ZF-based or ZF-using application</a>. That should make writing OAuth provider easier.
</blockquote>
<p>
His code just fleshes out the server portion of the provider, not all of the token generation and key handling it'll need on the backend - that'll still be the job of your scripts. You can find the library over on github in his <a href="https://github.com/smalyshev/Zend_OAuth_Provider">Zend_OAuth_Provider</a> repository.
</p>]]></description>
      <pubDate>Mon, 29 Aug 2011 10:41:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: PHP OAuth Provider: Authenticate User]]></title>
      <guid>http://www.phpdeveloper.org/news/16405</guid>
      <link>http://www.phpdeveloper.org/news/16405</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted the next part in her series looking at working with OAuth in PHP, showing how to <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Authenticate-User">authenticate the user</a> making the connection to your OAuth-enabled web service.
</p>
<blockquote>
This phase is probably the most familiar to us as developers, as it's simply a login form. The consumer will send the user to us at the URL we provided in the request token, and the user will have the request token key as a parameter. The access control on this page will look the same as on the rest of the website; if the user has a session already then the page is displayed, otherwise they must be logged in to see it.
</blockquote>
<p>
She talks about verifying the authentication token passed in (from the value already generated and put into a database table), the grant/deny process and the information to update in her sample table when the user falls into the "granted" side of things. She also briefly mentions the optional callback that can be passed to a service like this and how to handle its value.
</p>]]></description>
      <pubDate>Tue, 31 May 2011 10:43:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: PHP OAuth Provider: Request Tokens]]></title>
      <guid>http://www.phpdeveloper.org/news/16365</guid>
      <link>http://www.phpdeveloper.org/news/16365</link>
      <description><![CDATA[<p>
In the next of her series looking at OAuth in PHP, <i>Lorna Mitchell</i> has posted <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Request-Tokens">a look at request tokens</a> and how to hand them out via your application.
</p>
<blockquote>
The consumer requests a request token (see my <a href="http://www.lornajane.net/posts/2010/Authenticating-with-OAuth-from-PHP">earlier post about consuming OAuth</a>), and as a provider, we need to handle that request. In my example, I chose to pass the variables as GET parameters, but you could adapt this to handle POST variables or information contained in HTTP headers.
</blockquote>
<p>
She includes the code (using the functionality of the <a href="http://pecl.php.net/oauth">pecl_oauth extension</a>) to provide a token and the three functions you'll need to define to get things working - the consumerHandler, the tokenHandler and timestampNonceHandler. She also includes a sample database table structure for storing the OAuth information for a user.
</p>]]></description>
      <pubDate>Fri, 20 May 2011 08:39:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: PHP OAuth Provider: Initial Requirements]]></title>
      <guid>http://www.phpdeveloper.org/news/16319</guid>
      <link>http://www.phpdeveloper.org/news/16319</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has a quick post related to some of the OAuth work she's done on both sides, consumer and provider. <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Initial-Requirements">This latest post</a> relates to the OAuth pages and endpoints that are needed as a part of the authentication process.
</p>
<blockquote>
This article uses the <a href="http://pecl.php.net/oauth">pecl_oauth extension</a> and builds on <a href="http://toys.lerdorf.com/archives/55-Writing-an-OAuth-Provider-Service.html">Rasmus' OAuth Provider</a> post. [...] OAuth has a little more baggage with it than just passing a username and password to an API. 
</blockquote>
<p>
She lists the five things you'll need for your service and talks a bit about the registration process and how the consumer key/consumer secret keys are generated. There's no strict definition on them, so her example uses a combination of <a href="http://php.net/sha1">sha1</a>, <a href="http://php.net/mt_rand">mt_rand</a> and <a href="http://php.net/substr">substr</a> to get the job done. She also includes a sample "consumers" table for your reference.
</p>]]></description>
      <pubDate>Tue, 10 May 2011 10:04:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: ZendTool providers in ZF2 (dev1)]]></title>
      <guid>http://www.phpdeveloper.org/news/15191</guid>
      <link>http://www.phpdeveloper.org/news/15191</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/zend-framework/zendtool-providers-in-snapshot-1-of-zf2/">a quick post</a> about his conversion of his schema manager over from the Zend Framework version 1 to the upcoming version 2 - a simple task, as it turns out.
</p>
<blockquote>
I've started playing with the development versions of ZF 2.0 and one of the first things I thought I'd do was to port <a href="http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/">Akrabat_Db_Schema_Manager</a>. It turned out to be reasonably easy. All I needed to do was rework my use of ZF components to use the new ZF2 ones. Whilst I was at it, I also converted it to use namespaces. I also had to reorganise the http://github.com/akrabat/Akrabat library so that I could have ZF1 and ZF2 code in it.
</blockquote>
<p>
He includes "before" and "after" snippets of code to help illustrate the example. He had to change up things just a bit to handle the namespaces because of naming issues (a class named "Abstract" isn't allowed). If you want to see more of the updated code, you can check out <a href="http://github.com/akrabat/Akrabat/blob/master/zf2/Akrabat/Db/Schema/Manager.php">his account on github</a> with the changes.
</p>]]></description>
      <pubDate>Mon, 27 Sep 2010 11:40:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Creating Zend_Tool Providers]]></title>
      <guid>http://www.phpdeveloper.org/news/14736</guid>
      <link>http://www.phpdeveloper.org/news/14736</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> has put together <a href="http://weierophinney.net/matthew/archives/242-Creating-Zend_Tool-Providers.html">a new post</a> to his blog today about creating providers in Zend Framework applications (command-line tasks) using the Zend_Tool component.
</p>
<blockquote>
During [a workshop at Symfony Live] workshop, Stefan demonstrated creating Symfony "tasks". These are classes that tie in to the Symfony command-line tooling -- basically allowing you to tie in to the CLI tool in order to create cronjobs, migration scripts, etc. Of course, Zend Framework has an analogue to Symfony tasks in the <a href="http://framework.zend.com/manual/en/zend.tool.html">Zend_Tool</a> component's "providers". In this post, I'll demonstrate how you can create a simple provider that will return the most recent entry from an RSS or Atom feed. 
</blockquote>
<p>
He shows how to create a sample provider - one that grabs data from two RSS feeds and outputs them - complete with code example, adding the provider someplace where Zend_Tool can find it and using the provider through the command-line "zf" tool.
</p>]]></description>
      <pubDate>Fri, 02 Jul 2010 08:58:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rasmus Lerdorf's Blog: Writing an OAuth Provider Service]]></title>
      <guid>http://www.phpdeveloper.org/news/14549</guid>
      <link>http://www.phpdeveloper.org/news/14549</link>
      <description><![CDATA[<p>
<i>Rasmus Lerdorf</i> has written up a guide that can help you <a href="http://toys.lerdorf.com/archives/55-Writing-an-OAuth-Provider-Service.html">create a simple OAuth service</a> with the help of the <a href="http://pecl.php.net/package/oauth">PECL OAuth extension</a>.
</p>
<blockquote>
Last year I showed how to use pecl/oauth to write a <a href="http://toys.lerdorf.com/archives/50-Using-pecloauth-to-post-to-Twitter.html">Twitter OAuth Consumer</a>. But what about writing the other end of that? What if you need to provide OAuth access to an API for your site? How do you do it? Luckily John Jawed and Tjerk have put quite a bit of work into pecl/oauth lately and we now have full provider support in the extension. It's not documented yet at php.net/oauth, but there are some examples in <a href="http://svn.php.net/viewvc/pecl/oauth/trunk/examples/provider/">svn</a>. 
</blockquote>
<p>
He walks you through creating the consumer key registration page (so others can signup for access to your provider), making the OAuth endpoints, how to authorize the request token and send back out the access token. He also includes an actual API call to show it working. 
</p>]]></description>
      <pubDate>Mon, 24 May 2010 13:57:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans' Blog: How I got Zend_Tool working on Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/14081</guid>
      <link>http://www.phpdeveloper.org/news/14081</link>
      <description><![CDATA[<p>
A few version back the Zend Framework introduced a handy component that can help you get a Zend Framework started quickly - <a href="http://framework.zend.com/manual/1.10/en/zend.tool.html">Zend_Tool</a> (and the command line "zf"). It works like a charm on unix-based systems, but has some quirks about it on Windows. To help with the situation, <i>Cal Evans</i> has <a href="http://blog.calevans.com/2010/02/23/how-i-got-zend_tool-working-on-windows/">posted a guide on Zend_Tool</a> and how he got it working on his Windows 7 platform.
</p>
<blockquote>
One of the cool things about Zend Framework is it's cli tool, <a href="http://framework.zend.com/manual/1.10/en/zend.tool.html">Zend_Tool</a>. (zf) When zf works, it's awesome. However, when it breaks, it's a real pain in the butt. [...] Even though it's made great strides, setting up zf is still not seamless. To that end, here is my list of steps needed to setup zf.
</blockquote>
<p>
He's using XAMPP on a Windows 7 machine and has a list of eight steps you'll need to follow to get Zend_Tool playing happily including locating certain directories (your general path, the path to your php.exe) and a few commands to tell the Zend Framework where to correctly deposit its files. If all goes well, you'll get <a href="http://blog.calevans.com/wp-content/uploads/2010/02/zf_001.png">this kind of result</a> (screenshot). He mentions a slight problem, though - defining your own providers and them not being recognized. It can be corrected, though, using <a href="http://framework.zend.com/issues/browse/ZF-8899">this handy tip</a>.
</p>]]></description>
      <pubDate>Wed, 24 Feb 2010 08:40:37 -0600</pubDate>
    </item>
  </channel>
</rss>

