<?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>Fri, 24 May 2013 12:15:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Paul Jones' Blog: Universal Constructor Sighting "In The Wild"]]></title>
      <guid>http://www.phpdeveloper.org/news/14777</guid>
      <link>http://www.phpdeveloper.org/news/14777</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Paul Jones</i> <a href="http://paul-m-jones.com/archives/1500">talks about</a> spotting something "in the wild" that he's a proponent of - a "universal constructor".
</p>
<blockquote>
For those of you who don't know, "<a href="http://solarphp.com/manual/appendix-standards.constructor">universal constructor</a>" is the name I give to PHP constructors that always and only take a single parameter. The parameter is an array of key-value pairs, which is then merged with a set of default keys and values. Finally, the array is unmarshalled, usually into object properties.
</blockquote>
<p>
He talks about the benefits of using a constructor like this in your applications and how he's implemented it as a standard part of <a href="http://solarphp.com/">the Solar framework</a>. Oh, and the sighting in the wild? It was in <a href="http://www.jqueryin.com/projects/mongo-session/">this MongoDB session handler</a>.
</p>
<p>
Be sure to <a href="http://paul-m-jones.com/archives/1500#comments">check out the comments</a> for some other great opinions on this "universal constructor" idea, both for and against.
</p>]]></description>
      <pubDate>Mon, 12 Jul 2010 09:56:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: Updates "Getting Started" Docs for Solar]]></title>
      <guid>http://www.phpdeveloper.org/news/11761</guid>
      <link>http://www.phpdeveloper.org/news/11761</link>
      <description><![CDATA[<p>
<i>Paul Jones</i> has <a href="http://paul-m-jones.com/?p=394">a quick note</a> on his blog today mentioning the updates recently made to the "Getting Started" documentation for the <a href="http://www.solarphp.com">Solar PHP framework</a>. There's five new sections as a result of the overhaul:
</p>
<ul>
<li>A <a href="http://solarphp.org/manual:getting_started:first_run">howto on download and installation</a>
<li><a href="http://solarphp.org/manual:getting_started:first_vendor">Creating a workspace</a>
<li><a href="http://solarphp.org/manual:getting_started:first_basic_app">Making an application inside it</a>
<li>Working with <a href="http://solarphp.org/manual:getting_started:first_model">your first model</a>
<li><a href="http://solarphp.org/manual:getting_started:first_model_app">Combining the model and app</a>.
</ul>
<p>
You can find out more about this PHP MVC framework on its site - <a href="http://www.solarphp.com">SolarPHP.com</a>.
</p>]]></description>
      <pubDate>Mon, 19 Jan 2009 07:56:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Solar Blog: Authentication using MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/11084</guid>
      <link>http://www.phpdeveloper.org/news/11084</link>
      <description><![CDATA[<p>
On the Solar blog there's <a href="http://solarphp.com/blog/read/12-authentication-using-my-sql">a new post</a> introducing you to a method for authenticating your users (of your Solar-based application) off of a MySQL database.
</p>
<blockquote>
This entry is an extension to the current manual page for <a href="http://solarphp.org/manual:getting_started:user_authentication">user authentication</a> and is intended for folks who have already been through the <a href="http://solarphp.org/manual">basics of SolarPHP</a>. What I hope to accomplish here is to show you how to setup user authentication using MySQL, something the manual currently does not elaborate upon.
</blockquote>
<p>
He includes all of the bits you'll need to get it up and working - the code for the authentication, the configuration file setup, and the MySQL stable structure.
</p>]]></description>
      <pubDate>Thu, 25 Sep 2008 08:48:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Solar Blog: Using registry_set to auto-register objects]]></title>
      <guid>http://www.phpdeveloper.org/news/11065</guid>
      <link>http://www.phpdeveloper.org/news/11065</link>
      <description><![CDATA[<p>
In <a href="http://solarphp.com/blog/read/8-using-registry-set-to-auto-register-objects">this recent post</a> from the Solar blog, <i>anttih</i> shows how to use the Solar registry to automatically load and register objects when it starts up.
</p>
<blockquote>
<a href="http://solarphp.com/class/Solar_Registry">Solar_Registry</a> is a class for storing singleton objects which are used usually for things like SQL objects and the response and request objects. Now what's interesting, is that in the new version of Solar a new configuration key registry_set was added for the <a href="http://solarphp.com/class/Solar">Solar</a> arch-class. You can use it to tell Solar to automatically add objects to the registry when it starts up.
</blockquote>
<p>
He compares the two methods - manual loading and the automatic version and includes a "real world" example of loading up an SMTP object.
</p>]]></description>
      <pubDate>Tue, 23 Sep 2008 08:47:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: SolarPHP Framework Release 1.0.0alpha2]]></title>
      <guid>http://www.phpdeveloper.org/news/11042</guid>
      <link>http://www.phpdeveloper.org/news/11042</link>
      <description><![CDATA[<p>
The SolarPHP framework group is <a href="http://solarphp.com/blog/read/3-solar-100alpha2-released">happy to announce</a> the release of the latest version of the PHP rapid application development framework - <A href="http://solarphp.com/project/download">SolarPHP 1.0.0 aplha 2</a>.
</p>
<blockquote>
We're happy to announce the release of Solar 1.0.0alpha2. After almost a year of changes and improvements, this one has been a long time in coming. You can see the download-and-installation instructions <A href="http://solarphp.com/project/download">here</a>.
</blockquote>
<p>
Changes include updates to Solar_Auth, Solar_Cache, Solar_Sql, some schema changes, additions of some new classes like Solar_Factory, Solar_Service_Akismet and lots more. Check out <A href="http://solarphp.com/blog/read/3-solar-100alpha2-released">this blog entry</a> for the complete list (along with what was changed in detail).
</p>
<p>
Oh yeah, did we mention the project <A href="http://solarphp.com/blog/read/1-solar-gets-a-blog">now has a blog</a>? <i>Paul Jones</i> and crew have whipped up a blog application (written with Solar, of course) they've launched to help the community keep track of the latest from the framework. The source for the blog will be coming soon for those who are looking to see how it all works.
</p>]]></description>
      <pubDate>Thu, 18 Sep 2008 12:05:01 -0500</pubDate>
    </item>
  </channel>
</rss>
