<?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>Sun, 26 May 2013 03:14:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ZendCasts.com: Building a JSON End-Point With SLIM and jQuery: Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/17106</guid>
      <link>http://www.phpdeveloper.org/news/17106</link>
      <description><![CDATA[<p>
On ZendCasts.com today there's a new screencast in their "Building a JSON endpoint with the Slim microframework" series - <a href="http://www.zendcasts.com/building-a-json-end-point-with-slim-and-jquery-part-2/2011/11/">part two</a> focusing on jQuery integration. (Part one <a href="http://phpdeveloper.org/news/17044">is here</a>)
</p>
<blockquote>
[This screencast is] part 2 in a series on building a JSON end-point. We're using simple RESTful verbage to grab a list of names from a session store.
</blockquote>
<p>
You'll need to have the base scripts created in <a href="http://phpdeveloper.org/news/17044">part one</a> to follow along effectively. He picks up right where the previous part ends, creating a new view that uses some simple javascript (jQuery) code to pull the "names" values from his simple JSON endpoint. Also included is an example of a form for adding a new name to the list. The full source for the example can be <a href="https://gist.github.com/1346313">found over on github</a>.
</p>]]></description>
      <pubDate>Wed, 09 Nov 2011 10:04:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ZendCasts.com: Building a JSON Endpoint with SLIM (Part 1)]]></title>
      <guid>http://www.phpdeveloper.org/news/17044</guid>
      <link>http://www.phpdeveloper.org/news/17044</link>
      <description><![CDATA[<p>
On ZendCasts.com today, the next part of their series looking at using the <a href="http://slimframework.com">Slim microframework</a> has been posted. This is <a href="http://www.zendcasts.com/building-a-json-endpoint-with-slim-part-1/2011/10/">part one</a> of a tutorial building a JSON endpoint for a web service.
</p>
<p>
You'll need some of the base that he created in <a href="http://www.zendcasts.com/slimming-out-your-controller/2011/10/">this previous screencast</a> to follow along (the basic structure, really). His takes his basic "hello world" application and builds on it to add a "model" to pull name data from and has the "/names" action respond with a JSON-formatted message (and an "application/json" content-type). His "model" pulls the data out with findAll() and find() methods.
</p>
<p>
You can <a href="https://gist.github.com/1314258">grab the source</a> to follow along.
</p>]]></description>
      <pubDate>Wed, 26 Oct 2011 10:51:45 -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[Content With Style: Unit testing web service based models in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/12424</guid>
      <link>http://www.phpdeveloper.org/news/12424</link>
      <description><![CDATA[<p>
The Content with Style blog has continued their series looking at unit testing with the Zend Framework (see <a href="http://www.phpdeveloper.org/news/12333">this previous post</a>) with <a href="http://www.contentwithstyle.co.uk/content/unit-testing-web-service-based-models-in-zend-framework">this look</a> at testing services based models.
</p>
<blockquote>
However, unit testing models that talk to web services presents us with a different set of problem. Usually our application runs requests against something that is not in our control. Unless the service provider gives us some kind of test mode, we're operating with dynamic live data which shouldn't be used for testing, since it's harder to test in the first place, but also could be harmful to be manipulated.
</blockquote>
<p>
They present two method you can use to test the models: creating mock objects to handle and return correctly formatted data and intercepting the HTTP request to either send it to a Zend_HTTP adapter or a different endpoint (service location).
</p>]]></description>
      <pubDate>Wed, 29 Apr 2009 08:44:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Improving Ajax performance in Zend Framework applications]]></title>
      <guid>http://www.phpdeveloper.org/news/12184</guid>
      <link>http://www.phpdeveloper.org/news/12184</link>
      <description><![CDATA[<p>
New on his blog <i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2009/03/23/improving-ajax-performance-in-zend-framework-applications/">posted a simple idea</a> that you can take to make sure you're getting the most out of your Ajax/Zend Framework connections.
</p>
<blockquote>
A common reason to use Ajax in a website is to make it feel faster, so you usually want Ajax requests be processed as quickly as possible. While there are <a href="http://framework.zend.com/manual/en/performance.html">many ways to speed up Zend Framework</a> based applications, there are still some things like routing and dispatching which still add up to the total. There is, however, another way to make Ajax work even faster
</blockquote>
<p>
Since Ajax requests don't usually require all of the complex routing and dispatching that a normal Zend Framework request might, he recommends creating a separate Ajax handler. His includes an example of a simple searching endpoint with a class handling the backend logic. A simple handler script loads up the bootstrap and makes the request for the search, returning the search results in a JSON format.
</p>]]></description>
      <pubDate>Mon, 23 Mar 2009 08:45:03 -0500</pubDate>
    </item>
  </channel>
</rss>
