<?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, 19 May 2013 18:26:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Project: CodeSniffer for PSR's (PSR-0, PSR-1 & PSR-2)]]></title>
      <guid>http://www.phpdeveloper.org/news/18071</guid>
      <link>http://www.phpdeveloper.org/news/18071</link>
      <description><![CDATA[<p>
<i>Klaus Silveira</i> has created a set of PHP_CodeSniffer rules that can be used to <a href="https://github.com/klaussilveira/phpcs-psr">test your code for the recently approved PSR-1 & PSR-2 standards</a>.
</p>
<blockquote>
This is a PHP_CodeSniffer sniff to check against the PHP Standard Resolutions: <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0</a>, <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">PSR-1</a> and <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">PSR-2</a>. Those standards were approved by the <a href="https://github.com/php-fig/fig-standards">PHP Framework Interoperability Group</a>. You can read more about the PHP FIG and the PSR's on this <a href="http://paul-m-jones.com/archives/2420">excellent article</a> by Paul Jones.
</blockquote>
<p>
<a href="https://github.com/klaussilveira/phpcs-psr">The github repository</a> also provides an overview of the standards themselves and how to get these sniffs installed.
</p>]]></description>
      <pubDate>Sat, 09 Jun 2012 11:17:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Refulz Blog: Yii Framework - Scenarios for Conditional Multiple Validation Rules]]></title>
      <guid>http://www.phpdeveloper.org/news/17857</guid>
      <link>http://www.phpdeveloper.org/news/17857</link>
      <description><![CDATA[<p>
On the Refulz blog there's a post showing you how to <a href="http://php.refulz.com/yii-framework-scenarios-for-conditional-multiple-validation-rules/">set up conditional multiple validation rules</a> in a Yii framework application.
</p>
<blockquote>
I am yet to write the last article of the <a href="http://php.refulz.com/series/sessions-in-yii/">Yii Session</a> series. I just decided to write something about the scenarios in the Validation feature of Yii framework. Scenarios are a very useful tool for adding different validations rules for different cases on the same model. In a real life situation, you would require one validation rule for user registration but the same rule might not be applicable to the User login. Scenarios help you define validation rules for different situations within same model.
</blockquote>
<p>
He shows you how to set up a "rules()" method in your model and a few validation configurations inside it - ensuring the password and email are set, checking the length of the password, etc. Then, by calling the "validate()" method on the model, you can easily apply these rules and check the pass/fail status.
</p>]]></description>
      <pubDate>Tue, 24 Apr 2012 09:18:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: What programming rules should you ALWAYS follow?]]></title>
      <guid>http://www.phpdeveloper.org/news/17105</guid>
      <link>http://www.phpdeveloper.org/news/17105</link>
      <description><![CDATA[<p>
In a quick new post today <i>Kevin Schroeder</i> asks his readers for feedback on <a href="http://www.eschrade.com/page/what-programming-rules-should-you-always-follow">what programming rules you should always follow</a> in your development practices.
</p>
<blockquote>
Earlier today, more for my own interest, I asked the question on Twitter "What programming rules should you ALWAYS follow, regardless of the scenario you're working in?"  In other words, are there programming rules that you ALWAYS should follow.  It doesn't matter if it's a script to copy a bunch of files for a one time migration or if you're building the next Facebook (DON'T try to build the next Facebook.  You will fail miserably.  Build something else).  In other words, what was the purist of programming rules.
</blockquote>
<p>
Responses he received ranged from the simple to slightly more complex including:
</p>
<ul>
<li>Always comment your code
<li>Test your code
<li>Use source control
<li>"Think. Think again. Then write code"
<li>Use a good debugger to help track down problems
<li>Make effective use of logging/output
</ul>]]></description>
      <pubDate>Wed, 09 Nov 2011 09:20:37 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Anson Cheung's Blog: Optimize Web Site Performance by using YSlow]]></title>
      <guid>http://www.phpdeveloper.org/news/16940</guid>
      <link>http://www.phpdeveloper.org/news/16940</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Anson Cheung</i> guides you through another tool that can help you optimize your web applications - <a href="http://www.ansoncheung.tk/articles/optimize-web-site-performance-using-yslow">using YSlow for the frontend</a> to detect trouble spots early (whether they're actually caused by the frontend or not).
</p>
<p>
He goes through the thirteen rules to help improve your website's performance including:
</p>
<ul>
<li>Make fewer HTTP requests
<li>Gzip components
<li>Make JS and CSS external
<li>Remove duplicate scripts
<li>Configure ETags
</ul>
<p>
For more information about the YSlow extension (available for Firefox, Chrome, Opera and mobile devices), check out the <a href="http://developer.yahoo.com/yslow/">project's page</a> on Yahoo's Developer section (including ten more rules it checks).
</p>]]></description>
      <pubDate>Mon, 03 Oct 2011 11:12:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Noupe.com: Ten Simple Rules for Choosing the Perfect CMS + Excellent Options]]></title>
      <guid>http://www.phpdeveloper.org/news/12862</guid>
      <link>http://www.phpdeveloper.org/news/12862</link>
      <description><![CDATA[<p>
Noupe.com has <a href="http://www.noupe.com/php/choosing-cms-tips.html">a few suggestions for you</a> when you go to pick out your next content management system with ten guidelines that can help:
</p>
<blockquote>
The content management system you choose can really make a huge difference in how much time you (or your clients) spend keeping a site updated and maintained. There's a huge variety out there-some estimates put the number at around 1700 different options. Some are great...some, not so much.
</blockquote>
<p>
Among the suggestions are things like:
</p>
<ul>
<li>A CMS needs to work intuitively.
<li>The backend needs to be logical and well-organized.
<li>The right CMS shouldn't have a ton of extra functionality you'll never use.
<li>The right CMS should be easy for non-geeks to use.
<li>The pages it creates should be fast-loading and have simple code.
</ul>
<p>
They also mention a few options available that might be a good fit for you and your organization: <a href="http://wordpress.org/">WordPress</a>, <a href="http://www.silverstripe.org/">SilverStripe</a>, <a href="http://www.joomla.org/">Joomla!</a> and a few more.
</p>]]></description>
      <pubDate>Mon, 13 Jul 2009 12:13:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jonathan Snook's Blog: Multiple Validation as Behavior in CakePHP 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/10723</guid>
      <link>http://www.phpdeveloper.org/news/10723</link>
      <description><![CDATA[<p>
<i>Jonathan Snook</i> has <a href="http://snook.ca/archives/cakephp/multiple_validatable_behavior/">posted an update</a> to a <a href="http://www.phpdeveloper.org/news/10661">previous post</a> about validating multiple input fields at the same time in a CakePHP application. This update changes the way the validation is handled and moves it over into a Behavior.
</p>
<blockquote>
Using the new behavior is much like using the script as it was before. You can name the validation properties to include the action name and it'll automatically set that validation set as the default.
</blockquote>
<p>
His behavior lets you define validation rules, both included in a default set and as callbacks. He includes an example of its use and the full code (all thirty lines of it) for the behavior itself.
</p>]]></description>
      <pubDate>Thu, 31 Jul 2008 08:44:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nick Halstead's Blog: PHP Programming Contest - Win Zend Studio]]></title>
      <guid>http://www.phpdeveloper.org/news/8042</guid>
      <link>http://www.phpdeveloper.org/news/8042</link>
      <description><![CDATA[<p>
<i>Nick Halstead</i> has <a href="http://blog.assembleron.com/2007/06/14/php-programming-contest-win-zend-studio/">announced a contest</a> on his blog today for PHP developers everywhere to participate in - a programming competition surrounding a challenge he's created.
</p>
<blockquote>
It has been a lot harder than I thought to come up with a fair programming challenge that would not take too long or require lots of knowledge in any particular framework or other associated technology. It could have been to make use of a whole host of currently available API's and to make a useful mash-up but these again require other external knowledge beyond just PHP. I finally settled on a logic problem that is hopefully not too hard to solve but will test a range of PHP skills.
</blockquote>
<p>
The <a href="http://blog.assembleron.com/2007/06/14/php-programming-contest-win-zend-studio/">problem he's worked up</a> involves changing a word, one letter at a time, into another word using user-defined lists and choice of word. There's several requirements you'll need to follow an d rules for things like the submission process and what server setup can be used.
</p>
<p>
So, what's the motivation? First prize is a copy of <a href="http://www.zend.com/products/zend_studio?hpb=4">Zend Studio Professional</a> and a year of support, second prize is a <a href="http://www.zend.com/store/zend_php_extras/framework_shirt">Zend t-shirt</a>, and third is a Zend Pen. For full information on participating and on all of the rules you'll need to follow, check out <a href="http://blog.assembleron.com/2007/06/14/php-programming-contest-win-zend-studio/">Nick's full post</a>.
</p>]]></description>
      <pubDate>Thu, 14 Jun 2007 07:11:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[International PHP Magazine: Poll Question: The Rules of PHP Throwdown Include]]></title>
      <guid>http://www.phpdeveloper.org/news/6830</guid>
      <link>http://www.phpdeveloper.org/news/6830</link>
      <description><![CDATA[<p>
The International PHP Magazine has <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,26629,nodeid,5.html">posted the results</a> from their latest poll of the week. This time they asked the slightly odd question of opinions on the PHP Throwdown event - "The Rules of PHP Throwdown Include".
</p>
<p>
Seems like the question might have confused some others because the votes were notably lower than in some previous weeks. There was a tie for first place, though - both coming in with 6.8% of the votes were the "You can use PHP4 or PHP 5, MySQL or SQLite, Ajax, HTML, XHTML, and Javascript but no Flash" and "All" options. Dead last with no votes was the "All applications must be licensed with a CC compatible license" option.
</p>
<p>
They've also posted <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,26627,nodeid,5.html">a new poll</a> for this week asking which of the options you think still ring true when it comes to PHP:
<ul>
<li>PHP administrators like to compile PHP in Summer
<li>Register global is not dead
<li>memory_limit is not used
<li>PHP applications handle 100 Mb files
</ul>
</p>]]></description>
      <pubDate>Tue, 05 Dec 2006 15:46:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Joshua Eichorn's Blog: Official WebThumb Contest rules published]]></title>
      <guid>http://www.phpdeveloper.org/news/6555</guid>
      <link>http://www.phpdeveloper.org/news/6555</link>
      <description><![CDATA[<p>
<i>Joshua Eichorn</i> has posted the <a href="http://bluga.net/webthumb/contest.php">official contest rules</a> for the WebThumb Contest announced a <a href="http://blog.joshuaeichorn.com/archives/2006/09/22/webthumb-contest/">short while back</a>.
</p>
<blockquote>
The contest runs until November 30th, and the top 5 submitters will all win upgraded WebThumb accounts. The top submitter will also win a copy of my book, <a href="http://www.amazon.com/dp/0132216353?tag=megansbookblo-20&camp=14573&creative=327641&linkCode=as1&creativeASIN=0132216353&adid=19XQKY4GY2SHNGHYFEQB&">Understanding AJAX</a>.
</blockquote>
<p>
Since previously, all that was required was a comment on <a href="http://blog.joshuaeichorn.com/archives/2006/09/22/webthumb-contest/">this blog entry</a>, people who've posted there need to listen up - an official submission needs to be made. Check out <a href="http://bluga.net/webthumb/contest.php">this page</a> for the complete rules and all of the information you need to include in the submission email.
</p>]]></description>
      <pubDate>Mon, 23 Oct 2006 13:56:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorenzo Alberton's Blog: PEAR::Pager Tutorials]]></title>
      <guid>http://www.phpdeveloper.org/news/6303</guid>
      <link>http://www.phpdeveloper.org/news/6303</link>
      <description><![CDATA[<p>
<i>Lorenzo Alberton</i> has <a href="http://www.alberton.info/pear_pager_tutorial_mod_rewrite.html">posted a tutorial</a> today about using teh PEAR::Pager package to create "pretty links" with a little help from mod_rewrite.
</p>
<blockquote>
<p>
Most PHP pager classes can work just fine with GET parameters, correctly forwarding them through the pages. Few of them let you control the navigation links they create, though. This can be particularly annoying when you have some nice urls (thanks to some mod_rewrite rules o to your hand-crafted front controller) and the pager class can't respect them, showing the real, ugly links to the world.
</p>
<p>
If the above scenario is not new to you, then you should probably have a look at <a href="http://www.alberton.info/http:://pear.php.net/package/Pager">PEAR::Pager</a>. It's a <a href="http://pear.php.net/manual/en/package.html.pager.factory.php">fully customizable</a> package that should satisfy all your needs, including your preferred link format.
</p>
</blockquote>
<p>
In <a href="http://www.alberton.info/pear_pager_tutorial_mod_rewrite.html">his examples</a>, he provides the mod_rewrite rules to use, a sample PHP script that would normally use the $_GET values (in an ugly URL) to paginate the results. He also compensates for if the page number is actually a part of the path and not just at the end of the file name. 
</p>]]></description>
      <pubDate>Tue, 19 Sep 2006 07:31:52 -0500</pubDate>
    </item>
  </channel>
</rss>
