namespaces

PHPBuilder.com: Introducing Namespaces for PHP Developers

PHPDeveloper.org  Thu, 09/22/2011 - 09:13

On PHPBuilder.com today there's a new article from Jason Gilmore introducing you to namespaces in PHP 5.3+ development.

Namespaces make it simpler to separate out your code into functional pieces and help keep it organized.


 

API documentation in Jenkins with DocBlox - Stefan Koopmanschap

Planet PHP  Fri, 04/29/2011 - 07:42

People using PHP that want API documentation usually automatically think of phpDocumentor, which used to be the de facto standard for generating API documentation from your PHP projects.

However, the project has been dormant for a long time now and definitely does not support new PHP features such as namespaces, so it was really time to look for an alternative.

In this blogpost, I'll show you how I set up my Jenkins CI to use DocBlox, one of the new API documentation generators currently available.


 

Taking advantage of PHP namespaces with older code - Evert Pot

Planet PHP  Mon, 01/31/2011 - 16:20

During Rob Allen's ZF2 talk at PHPBenelux an audience member shouted this really useful tip, which I thought was worth sharing.

If you're running PHP 5.3 and you have to use pesky old code that uses long class prefixes (yea, so, pretty much all PHP code out there), you can still make use of namespace features to shorten them.


 

PHPBuilder.com: A Twist In Namespaces

PHPDeveloper.org  Mon, 08/31/2009 - 11:54

In this new article from PHPBuilder.com they take a look at namespaces, a feature added in the recently released 5.3 version of PHP and a simple example of their use.


 

SitePoint PHP Blog: How to Use PHP Namespaces (Parts 2 &3)

PHPDeveloper.org  Wed, 07/15/2009 - 07:16

The SitePoint PHP blog has posted the next two parts of their series looking at using namespaces in PHP - parts 2 and 3:

In the second part of the series they build on the basics and look at importing namespaces into a script, aliasing them to a shorter, easier to use name and some rules to consider about name resolution.