<?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 15:02:04 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Padraic Brady's Blog: The Mockery: An Independent Mock Object and Stub Framework for PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/12080</guid>
      <link>http://www.phpdeveloper.org/news/12080</link>
      <description><![CDATA[<p>
Noting the lack of a good, independent library for creating Mock Objects for unit testing PHP scripts, <i>Padraic Brady</i> (with assistance from <i>Travis Swicegood</i>) has come up with a standalone Mock Object and Stub framework - <a href="http://blog.astrumfutura.com/archives/392-The-Mockery-An-Independent-Mock-Object-and-Stub-Framework-for-PHP5.html">Mockery</a>.
</p>
<blockquote>
It's not tailored specifically to any one testing framework, rather it's an entirely separate framework with a discrete API. The idea is that you can use this framework within PHPUnit, or SimpleTest, or anything else really, without being forced to rely on the built-in support (if any) that test framework provides. Mockery was designed specifically to implement a form of Domain Specific Language (DSL). It makes extensive use of a fluent interface mixed with methods to approximate plain English.
</blockquote>
<p>
He includes an overview of what Mock Objects and Stubs are and how to set them up with the Mockery tool. He finishes things off with a look at the Mockery and Mock Object Expectation APIs. You can grab this first release either as a <a href="http://dev.phpspec.org/Mockery-0.1.0alpha.tgz">PEAR package</a> or from its <a href="http://github.com/padraic/mockery">github page</a>.
</p>]]></description>
      <pubDate>Fri, 06 Mar 2009 10:28:58 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Vinu Thomas' Blog: PHP Compiler - Roadsend]]></title>
      <guid>http://www.phpdeveloper.org/news/7690</guid>
      <link>http://www.phpdeveloper.org/news/7690</link>
      <description><![CDATA[<p>
On his blog today, <i>Vinu Thomas</i> <a href="http://blogs.vinuthomas.com/2007/04/23/php-compiler-roadsend/">looks briefly at</a> one of the compiler options for PHP developers - the <a href="http://www.roadsend.com/home/index.php?pageID=main">Roadsend Compiler</a>.
</p> 
<blockquote>
Finally an open source PHP compiler ! Roadsend was perviously available as a commerical compiler for PHP with prices starting from $129. They seem to have shifted to the OSS model recently, giving free professional licence to their older compiler while they're working on releasing the precompiled versions of their open source code base.
</blockquote>
<p>
He also links to <a href="http://code.roadsend.com/pcc/">a community site</a> that offers the latest news about the project, some good places to start if you're just picking it up, and the timeline/roadmap for how things will progress.
</p>]]></description>
      <pubDate>Tue, 24 Apr 2007 08:37:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: A Basic Monitoring Engine in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6275</guid>
      <link>http://www.phpdeveloper.org/news/6275</link>
      <description><![CDATA[<p>
Continuing on in their series of working with stand alone PHP scripts, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/A-Basic-Monitoring-Engine-in-PHP/">this third and last part</a> looking at the creation of a basic script you can use to monitor your server (an excerpt from <a href="http://www.amazon.com/Advanced-PHP-Programming-George-Schlossnagle/dp/0672325616/">Advances PHP Programming</a> by <i>George Schlossnagle</i>).
</p>
<blockquote>
Last week, we continued our discussion of PHP standalone scripts with child processes and more. This week, we conclude our discussion and bring together what you've learned.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/A-Basic-Monitoring-Engine-in-PHP/">start</a> with the creation of a very basic daemon, including permission restrictions. They then modify this heavily to support the monitoring of processes through various parameters like frequency, status_time, and a description of the service. They then create the full example script and show the usage by checking to see if a URL passed in can be opened.
</p>
<p>
They also include, as a bonus, another more useful script that will email someone when the specified service goes down (still a HTTP check, though).
</p>]]></description>
      <pubDate>Thu, 14 Sep 2006 13:44:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Managing Standalone Scripts in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6222</guid>
      <link>http://www.phpdeveloper.org/news/6222</link>
      <description><![CDATA[<p>
DevShed continues their look at standalone PHP scripts (server-side scripting, not on the web) in <a href="http://www.devshed.com/c/a/PHP/Managing-Standalone-Scripts-in-PHP/">part two</a>, "Managing Standalone Scripts in PHP" excerpted from the book "Advanced PHP Programming" from <i>George Schlossnagle</i>.
</p>
<blockquote>
Last week, we began our discussion of PHP standalone scripts. This week, we'll be talking about child processes, shared resources, signals, and writing daemons.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Managing-Standalone-Scripts-in-PHP">jump right in</a>, going first for a look at forking off child processes from the script using the pcntl functionality you'll need to build into PHP. Resource management is key to working with server scripts, and they show you how to close them out when you're through. Next up is a brief look at the types of signals that you can send to the child processes, and some good rules to follow for writing daemons in PHP.
</p>]]></description>
      <pubDate>Thu, 07 Sep 2006 16:19:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Implementing with PHP: Standalone Scripts]]></title>
      <guid>http://www.phpdeveloper.org/news/6186</guid>
      <link>http://www.phpdeveloper.org/news/6186</link>
      <description><![CDATA[<p>
DevShed has posted an excerpt from the book "Advanced PHP Programming" from <i>George Schlossnagle</i> as <a href="http://www.devshed.com/c/a/PHP/Implementing-with-PHP-Standalone-Scripts/">this new tutorial</a> detailing the creation of standalone PHP scripts.
</p>
<blockquote>
<p>
If you've ever been interested in making significant use of PHP outside of a web environment, this article will show you how. The first of three parts.
</p>
<p>
This chapter describes how to reuse existing code libraries to perform administrative tasks in PHP and how to write standalone and one-liner scripts. It gives a couple extremely paradigm-breaking projects that put PHP to use outside the Web environment.
</p>
</blockquote>
<p>
In <a href="http://www.devshed.com/c/a/PHP/Implementing-with-PHP-Standalone-Scripts/">this first part</a>, they groundwork is laid - they introduce the CLI interface PHP already has and show how to handle input/output and work with parsing the command line arguments passed in.
</p>]]></description>
      <pubDate>Thu, 31 Aug 2006 10:46:37 -0500</pubDate>
    </item>
  </channel>
</rss>

