commonPHP

commonPHP is an open source, object oriented, test driven PHP library designed to help web application coders tackle common hurldes.

  • It's Simple. You can drop it in and start using it immediately. The basic, common functionality is easy to access, but it still offers granularity when you need it.
  • It's Well Tested. By making use of PHPUnit's powerful framework, commonPHP uses extensive unit tests to stamp out bugs and ensure solid code.
  • It has a "Use-at-Will" Design. commonPHP strives to offer you a common sense solution when you need one, and get out of your way when you don't. This paradigm offers you the freedom to code how you want, rather than constantly having to reference documentation to make sure you're following someone else's standards.
  • It's Composition Oriented. When it comes down to the choice between inheritance and composition, commonPHP tries to use composition. This allows for extensive modularity and code re-use. Inheritance is still used when appropriate, but only as a polymorphic enhancement for building object graphs.

Requirements

commonPHP is designed explicitly for PHP 5.3, which is currently cycling through release candidates. The release can be downloaded here. This new version notably includes closures, namespaces, invokable objects, late static binding and phar archives -- all of which are used to set commonPHP apart from other libraries.

Git Repository

The Git repository is available to the public. If you are on linux, you can check out the latest version of the with the following command:

git clone git://git.assembla.com/commonPHP.git

The repository is also available to be browsed online.

Reporting a Bug

If you find a bug, make sure you provide steps to reproduce it. If you can, a unit test and a patch are even better.

To report a bug, check out our bug tracker.