<?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>Sat, 25 May 2013 04:01:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Alvaro Videla: Using RabbitMQ in Unit Tests]]></title>
      <guid>http://www.phpdeveloper.org/news/19529</guid>
      <link>http://www.phpdeveloper.org/news/19529</link>
      <description><![CDATA[<p>
<i>Alvaro Videla</i> has a new post today showing how he <a href="http://videlalvaro.github.io/2013/04/using-rabbitmq-in-unit-tests.html">used RabbitMQ in his unit testing runs</a> with a small, quickly installed version of the server that can be removed once the tests are complete.
</p>
<blockquote>
In this blog post I want to show you a very simple technique for using RabbitMQ in our Unit or Functional Tests. Let's say you wrote a bunch of tests for your RabbitMQ consumers and then it's time to run them. To do that you probably need to setup a RabbitMQ server just for tests with their own users and passwords, or you need to set up a whole new virtual host for your tests. [...] With a future release of RabbitMQ that we can already test on the nightlies website, we can run RabbitMQ without the need to install Erlang. We created a package that ships a stripped down version of Erlang together with the broker bits, so running RabbitMQ now is as easy as downloading a tarball, uncompressing it and starting the server. 
</blockquote>
<p>
With a combination of this more self-contained package and some listener handling through PHPUnit, they uncompress the tarball with a PHP script and start the server with the defined configuration. Then, once the tests are done, it cleans itself up and removes the entire server directory to make for a clean run the next time.
</p>
Link: http://videlalvaro.github.io/2013/04/using-rabbitmq-in-unit-tests.html]]></description>
      <pubDate>Wed, 01 May 2013 09:10:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alvaro Videla's Blog: Reply to "Scala is Easier than PHP"]]></title>
      <guid>http://www.phpdeveloper.org/news/15467</guid>
      <link>http://www.phpdeveloper.org/news/15467</link>
      <description><![CDATA[<p>
<i>Alvaro Videla</i> has <a href="http://videlalvaro.github.com/2010/11/reply-to-scala-is-easier-than-php.html">written up a response</a> to <i>Wade Arnold</i>'s <a href="http://phpdeveloper.org/news/15453">Scala's easier than PHP</a> post and some of the points he doesn't agree with him on.
</p>
<blockquote>
Before going on with the points, let me state something: please avoid flame wars, all the Scala vs. PHP stuff, fanboyism and what not. This post is not about that. Regarding Wade Arnold I have to say that I fully respect him. While I don't know him personally, I know him for his work on AMFPHP, since it was a platform I used to work with before. 
</blockquote>
<p>
<i>Alvaro</i> talks about functional programming and some of the main points he had made about Erlang in a talk he had given - code reload, being ready for multi-core and no shared state between scripts. He talks about how these (really) apply to PHP.
</p>]]></description>
      <pubDate>Mon, 22 Nov 2010 08:29:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alvaro Videla's Blog: Erlang as a Fast Key Value Store for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14149</guid>
      <link>http://www.phpdeveloper.org/news/14149</link>
      <description><![CDATA[<p>
<i>Alvaro Videla</i> has submitted a new post he's written up combining PHP and Erlang yet again, but this time he's using it to just <a href="http://obvioushints.blogspot.com/2010/03/erlang-as-fast-key-value-store-for-php.html">store key/value pairs</a> rather than for <a href="http://www.phpdeveloper.org/news/13871">session data</a>.
</p>
<blockquote>
In this post I want to show you some of the neat things that can be done with the <a href="http://code.google.com/p/mypeb/">PHP-Erlang Bridge extension</a>: A Key Value Store. Erlang comes packed with a Key Value store in the form of the ETS module. This is database is pretty fast and efficient for storing the Erlang terms in memory.
</blockquote>
<p>
He tried a proof of concept to see how well the system would respond and was able to push over 150k items into the storage in one second. Sample code and instructions on getting the bridge working are included in the post.
</p>]]></description>
      <pubDate>Mon, 08 Mar 2010 13:37:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alvaro Videla's Blog: Erlang as Session Storage for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13871</guid>
      <link>http://www.phpdeveloper.org/news/13871</link>
      <description><![CDATA[<p>
<i>Alvaro Videla</i> has a <a href="http://obvioushints.blogspot.com/2009/12/erlang-as-session-storage-for-php.html">different sort of suggestion</a> for storing the sessions for your application - use Erlang.
</p>
<blockquote>
In the last few days I been playing with the PHP extension <a href="http://code.google.com/p/mypeb/">mypeb</a> which allows us to connect to Erlang from PHP. As a simple example to show what we can do with this extension I will create a PHP class that will be used as the session_save_hanlder for PHP. [...] I will like to try something different by using this class to interact with an Erlang node that will act as the in memory storage for our sessions using ETS tables.
</blockquote>
<p>
He uses the <a href="http://php.net/session-set-save-handler.php">session_set_save_handler</a> PHP function to point the application to a new location (away from the default filesystem handling) and to a custom ErlangSessionHandler object's "open" method. Also included are "close", "read" and "write" methods that let PHP talk directly to the Erlang instance. Code snippets are included.
</p>]]></description>
      <pubDate>Tue, 19 Jan 2010 15:52:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jan Lehnardt's Blog: CouchDb PHP Library for JSON API]]></title>
      <guid>http://www.phpdeveloper.org/news/8620</guid>
      <link>http://www.phpdeveloper.org/news/8620</link>
      <description><![CDATA[<p>
<i>Jan Lehnardt</i> <a href="http://jan.prima.de/~jan/plok/archives/90-CouchDb-PHP-Library-for-JSON-API.html">points out</a> an update that's been made to the CouchDb PHP library for the JSON API. As <a href="http://groups.google.com/group/couchdb/browse_thread/thread/7c298162217f0799">posted to the mailing list</a> for the project:
</p>
<blockquote>
Dear Couch Potatoes (or something), I updated the CouchDb PHP Library and the Demo application BugShrink (our bug-tracker) to the new JSON API.
</blockquote>
<p>
You can try out this new update via <a href="http://couchprojects.googlecode.com/svn/trunk/">the project's repository</a> or just check out the <a href="http://code.google.com/p/couchprojects/">CouchDb project homepage</a> for more information.
</p>]]></description>
      <pubDate>Mon, 10 Sep 2007 11:10:00 -0500</pubDate>
    </item>
  </channel>
</rss>
