<?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>Wed, 23 May 2012 04:42:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: PHP 5.4.0 in a nutshell]]></title>
      <guid>http://www.phpdeveloper.org/news/17790</guid>
      <link>http://www.phpdeveloper.org/news/17790</link>
      <description><![CDATA[<p>
If you've been looking for the "quick and dirty" definition of all of the changes that come with the latest version of PHP 5.4, you should check out <a href="http://www.codediesel.com/php/php-5-4-in-a-nutshell/">this new post</a> from <i>Sameer Borate</i>. It has a quick rundown, code included, of these new features and changes.
</p>
<blockquote>
Although purists have always sneered upon PHP for being a "patched" language; the evolution of PHP over the years, with new features added in every version, has only increased its popularity. The latest 5.4 release has followed the trend with some major feature additions. The following post describes some important changes in PHP 5.4.
</blockquote>
<p>
His list includes: the updated array syntax, the bulit-in web server, array dereferencing, traits, upload progress tracking and various core changes to things like  the short syntax for calling static methods in classes and the complete remval of magic quotes.
</p>]]></description>
      <pubDate>Mon, 09 Apr 2012 09:16:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Reddit.com: What are some genuine criticisms of PHP?]]></title>
      <guid>http://www.phpdeveloper.org/news/17780</guid>
      <link>http://www.phpdeveloper.org/news/17780</link>
      <description><![CDATA[<p>
On Reddit.com there's <a href="http://www.reddit.com/r/PHP/comments/rezaw/what_are_some_genuine_criticisms_of_php/">a long thread</a> with responses to the question "What are some genuine criticisms of PHP?" with opinions ranging from small issues (like syntax) out to more community-related topics.
</p>
<blockquote>
PHP tends to get a lot of flak, but mostly it is for something that isn't really the fault of PHP. Things like "there is so much bad PHP code out there" may be true but you can write bad code in any language. You shouldn't be mixing PHP, SQL and HTML, and you should be escaping/parameterizing variables for queries. (Thankfully this is less prevalent nowadays.) So do many PHP criticisms actually hold true today, now we have namespaces and we have buried crap like magic quotes at the bottom of the ocean?
</blockquote>
<p>Other comments cover things like</p>
<ul>
<lI>PHP's namespace implementation
<li>poor web services support
<li>Less code audits, more "roll-your-own fever"
<li>Function naming and parameter order
<li>weak OOP functionality
</ul>
<p>
Check out <a href="http://www.reddit.com/r/PHP/comments/rezaw/what_are_some_genuine_criticisms_of_php/">the full post</a> for lots more opinions and add yours too!
</p>]]></description>
      <pubDate>Thu, 05 Apr 2012 10:09:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Taking Advantage of PHP's Built-in Server]]></title>
      <guid>http://www.phpdeveloper.org/news/17644</guid>
      <link>http://www.phpdeveloper.org/news/17644</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial for those on the bleeding edge of PHP using the latest released version (5.4) and a feature that comes with it - <a href="http://phpmaster.com/taking-advantage-of-phps-built-in-server/">using the built-in webserver</a> that comes bundled for testing purposes.
</p>
<blockquote>
One of the cooler features of the new PHP 5.4 release is a built-in web server designed specifically for development and testing. Now you can write and test your code without having to have a full-fledged LAMP configuration - just launch a the built-in server from the command line, test your code, and then shut it down when you're finished. [...] In this article I'll explain some basic uses of the new built-in server and show you how to build a portable personal development server useful for quickly testing your applications
</blockquote>
<p>
He starts with a look at how to start up the web server (a simple command line switch and host/port definition) and the resulting default <a href="http://php.net/phpinfo">phpinfo</a> page it displays. Other options include the ability to specify a document root for your server and create a sort of "front controller" for it to route requests. They show how to create a simple application based on this that can dynamically load in the index file, a router and pass the request off to the correct file. Their example includes some "niceties" too like logging, "hosts allowed" and checks for requesting directories.
</p>
<p>
You can find their full code for this example <a href="http://phpmaster.com/taking-advantage-of-phps-built-in-server">over on github</a>.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2012 08:17:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: PHP 5.4 is Here! What You Must Know]]></title>
      <guid>http://www.phpdeveloper.org/news/17631</guid>
      <link>http://www.phpdeveloper.org/news/17631</link>
      <description><![CDATA[<p>
NetTuts.com has posted their own "<a href="http://net.tutsplus.com/tutorials/php/php-5-4-is-here-what-you-must-know/">what you must know</a>" about the recently released (major) upgrade to the PHP language - PHP 5.4.
</p>
<blockquote>
PHP 5.4 is here; the next major step forward since version 5.3 - keeping PHP 6 (full Unicode support) on hold for now. The latest enhancements significantly improve its elegance, while removing deprecated functionality, resulting in a dramatic optimization of the runtime (up to 20% more speed and memory usage reduction).
</blockquote>
<p>They hit all of the highlights:</p>
<ul>
<li>Traits
<li>Built-in CLI Web-Server
<li>Shorter Array Syntax
<li>Array Dereferencing
<li>$this In Anonymous Functions
<li>&lt;?= is Always On
<li>Binary Number Representation
<li>Callable Typehint
<li>Initialized High Precision Timer
</ul>
<p>
Code examples are provided where relevant.
</p>]]></description>
      <pubDate>Tue, 06 Mar 2012 10:24:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Slawek Lukasiewicz's Blog: New Features in PHP 5.4 - JSON Extension & header_register_callback]]></title>
      <guid>http://www.phpdeveloper.org/news/17624</guid>
      <link>http://www.phpdeveloper.org/news/17624</link>
      <description><![CDATA[<p>
In the first two posts of his "features new to PHP 5.4" series <i>Slawek Lukasiewicz</i> has posted about two things that weren't mentioned very often in most of the 5.4 hit lists - improvements to the JSON extension and the header_register_callback method.
</p>
<p>About the <a href="http://www.leftjoin.net/2012/03/php-5-4-json-extension-improvements/">JSON extension improvements</a>:
</p>
<blockquote>
By default, when we pass object to json_encode function, it will return JSON representation of object public properties. [...] PHP 5.4 introduces JsonSerializable interface with JsonSerialize abstract method. After implementing this method we can independently set values used in JSON representation.
</blockquote>
<p>Related to the <a href="http://www.leftjoin.net/2012/03/php-5-4-header_register_callback/">header_register_callback addition</a>
</p>
<blockquote>
After looking at new functions introduced in PHP 5.4 we can found one called <a href="http://www.php.net/manual/en/function.header-register-callback.php">header_register_callback</a>. Using it, we can register callback which will be called before sending output.
</blockquote>
<p>
The stable version of PHP 5.4 has officially been released, so <a href="http://php.net/downloads">get out there and grab it</a> and start using these new features now!
</p>]]></description>
      <pubDate>Mon, 05 Mar 2012 10:16:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: Setting Up Sublime Text 2 For PHP Development]]></title>
      <guid>http://www.phpdeveloper.org/news/17595</guid>
      <link>http://www.phpdeveloper.org/news/17595</link>
      <description><![CDATA[<p>
<i>Stuart Herbert</i>, a big fan of the Sublime Text 2 editor, has <a href="http://blog.stuartherbert.com/php/2012/02/28/setting-up-sublime-text-2-for-php-development/">put together a post</a> showing you what he thinks is an effected way to set up the editor for PHP development.
</p>
<blockquote>
As the interest seems to be there, I thought it would be a great idea to follow up with a post taking you step by step through how I've set up Sublime Text 2 for PHP development, and showing you some of the useful features that you get out of the box with Sublime Text 2.
</blockquote>
<p>
He's come up with some screencasts of his setup so you can see the useful features in action. He points out a few things to install or that use can use to make your development simpler:
</p>
<ul>
<li>Package Control
<li>the Soda theme
<li>how to edit user preferences
<li>using the "Goto Anything" bar
<li>using the PHP snippets plugin
<li>DocBlockr for documentation blocks
<li>Sublime linter
<li>Goto Documentation
</ul>
<p>
...and much more. This flexible editor makes it easy to customize just about everything in your environment and with more and more <a href="http://wbond.net/sublime_packages/community">plugins/packages</a> popping up all the time, there's a good chance the feature you need will be introduced soon.
</p>]]></description>
      <pubDate>Tue, 28 Feb 2012 08:49:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: PDO vs. MySQLi: Which Should You Use?]]></title>
      <guid>http://www.phpdeveloper.org/news/17572</guid>
      <link>http://www.phpdeveloper.org/news/17572</link>
      <description><![CDATA[<p>
On the NetTuts.com site today there's <a href="http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/">a quick tutorial</a> comparing two of the main database access methods available to PHP developers - PDO and MySQLi - based on performance and features they each have.
</p>
<blockquote>
When accessing a database in PHP, we have two choices: <a href="http://www.php.net/manual/en/book.mysqli.php">MySQLi</a> and <a href="http://www.php.net/manual/en/book.mysqli.php">PDO</a>. So what should you know before choosing one? The differences, database support, stability, and performance concerns will be outlined in this article.
</blockquote>
<p>
The article starts with a summary of what each of the tools offers as far as features, things like the API to work with the interface, difficulty of making connections, use of prepared statements and performance. This is followed by a few code examples showing the same actions on each side:
</p>
<ul>
<li>Making a new connection
<li>Databases supported (PDO has drivers)
<li>Named parameters
<li>Object mapping
<li>Security
<li>Performance
</ul>
<blockquote>
Ultimately, PDO wins this battle with ease. With support for twelve different database drivers (eighteen different databases!) and named parameters, we can ignore the small performance loss, and get used to its API. From a security standpoint, both of them are safe as long as the developer uses them the way they are supposed to be used (read: prepared statements).
</blockquote>]]></description>
      <pubDate>Wed, 22 Feb 2012 11:58:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Using Traits in PHP 5.4]]></title>
      <guid>http://www.phpdeveloper.org/news/17522</guid>
      <link>http://www.phpdeveloper.org/news/17522</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial about using a feature in the upcoming PHP release (5.4) to make it easier to work with more modular code - <a href="http://phpmaster.com/using-traits-in-php-5-4/">using traits</a>.
</p>
<blockquote>
In this article I will discuss traits, a new feature introduced in PHP 5.4 to overcome [issues where multiple inheritance is needed]. The concept of traits itself is nothing new to programming and is used in other languages like Scala and Perl. They allows us to horizontally reuse code across independent classes in different class hierarchies.
</blockquote>
<p>
Included in the post is example code showing what the use of a trait looks like and a method for creating a Singleton that can spawn instances of two classes. Also included are examples of:
</p>
<ul>
<li>using multiple traits at once, 
<li>traits made up of traits, 
<li>the importance of order, 
<li>aliasing to avoid conflicts, 
<li>reflection 
<li>and a few other features that come along with their use.
</ul>]]></description>
      <pubDate>Thu, 09 Feb 2012 08:40:50 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: PHP 5.4 Features: Shall you Upgrade to the newer PHP Version?]]></title>
      <guid>http://www.phpdeveloper.org/news/17471</guid>
      <link>http://www.phpdeveloper.org/news/17471</link>
      <description><![CDATA[<p>
Over on the PHPClasses.org blog today there's <a href="http://www.phpclasses.org/blog/post/173-PHP-54-Features-Shall-you-Upgrade-to-the-newer-PHP-Version.html">a new post</a> looking at the next major upcoming PHP version (5.4), what it comes with and why you might want to make the upgrade.
</p>
<blockquote>
PHP 5.4.0 is planned to be released on February, 2 2012. By the time you are reading this, it may already been out. It is a result of many months of development. Many features were proposed for this release. Some made into this version, others did not make it at least for now. So, now you may be wondering which interesting features really made it. Let me tell you more about some of the more interesting features present in this release.
</blockquote>
<p>
The article mentions some of the usual major features that can be found in just about every "in PHP 5.4" list - traits, the built-in web server, binary notation for integers - but it also includes some of the features that didn't make the cut this time (like annotations and the inclusion of the APC caching extension). Also included are questions to ask to see if the upgrade is for you like:
</p>
<ul>
<li>Do you need the new features?
<li>Do you need the updates now?
<li>Try it and test it in dev first - does it meet your needs or cause other bugs?
</ul>
<p>
The planned release for PHP 5.4 is during the first week of February (2012). Additionally, if you'd like to give the PHP development group some help testing out the latest Release Candidate, you can <a href="https://plus.google.com/113232754375212792615/posts/23fFbtNobsw">find instructions here</a>.
</p>]]></description>
      <pubDate>Tue, 31 Jan 2012 10:05:03 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Hasin Hayder's Blog: Getting comfy with PhpStorm - one of the best IDEs so far!]]></title>
      <guid>http://www.phpdeveloper.org/news/17333</guid>
      <link>http://www.phpdeveloper.org/news/17333</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i>talks about "<a href="http://hasin.me/2012/01/03/getting-comfy-with-phpstorm/">getting comfy with PHPStorm</a>" a relatively recent addition to the IDE ranks for PHP.
</p>
<blockquote>
I am a big time fan of <a href="http://www.netbeans.org/">Netbeans</a> and I left it a few days after it's release of 6.7. It was so good, heavenly, yummy but I had to leave this old pal because of it's extreme hunger to the available resources. [...] I left Netbeans and started using <a href="http://hasin.me/2012/01/03/getting-comfy-with-phpstorm/www.jetbrains.com/phpstorm/">PhpStorm</a>. I have a company license and I am glad that I made this move. I am not going to preach PhpStorm in rest of this article, but what I will do is sharing my experience with PhpStorm.
</blockquote>
<p>
He goes through a list of his favorite things about the IDE - its speed it operates at overall, great Javascript/HTML intellisense, version control integration, less resource intensive and that it costs less overall (and comes from a "developer friendly" company).
</p>
<p>
If you're interested in trying out PHPStorm for yourself, you can find a demo at <a href="http://www.jetbrains.com/phpstorm">http://www.jetbrains.com/phpstorm</a>.
</p>]]></description>
      <pubDate>Mon, 02 Jan 2012 15:07:03 -0600</pubDate>
    </item>
  </channel>
</rss>

