PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

phix-0.11 and ComponentManager-1.0 Released

Note: This article was originally published at Planet PHP on 22 March 2011.
Planet PHP

In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components.

phix is a generic command-line tool that I recently released with support for creating and managing several types of PHP components. phix was always intended to be a framework-agnostic environment for easily creating and running CLI apps, and to keep that goal pure, I've separated the tasks for creating and updating PHP components out of phix into their own components.

This allows phix itself to be developed and improved on its own, and for the support for each type of component to move forward at their own pace. And, for an immediate practical benefit, it means that the 14 megabytes needed for the php-docbook component support doesn't have to be downloaded every time we fix a bug elsewhere.

There's a new PEAR-compatible package now, to keep up to date with support for the different types of components, called ComponentManager.

How To Install ComponentManager

If you haven't installed phix before, you only need to install ComponentManager. It will pull in phix as one of its dependencies:

pear channel-discover pear.gradwell.com pear install Gradwell/ComponentManager

How To Upgrade From phix-0.10

To upgrade from phix-0.10, just run the following:

pear upgrade Gradwell/phix pear install Gradwell/ComponentManager