PHP Augeas extension released
Posted in development on December 1st, 2009 by Pedro Padron – Be the first to commentA few weeks ago I did the first release of augeas, my first PECL extension. Augeas is a configuration editing tool that provides an unified API to different configuration file formats. Quoting the official website:
Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files.
After the second release, I notified David Lutterkort, who was kind enough to add the PHP extension to the list of language bindings in the Augeas website.
Well, today I just released version 0.4.0 (thanks to Pierre Joye for fixing the upload page), which includes a new method (Augeas::mv()) and finally a PHPUnit test suite (AllTests.php).
The next items in my TODO list regarding this project are (in no particular order):
Augeas::defVar()wrapping aug_defvar()Augeas::__toString()wrapping aug_print() to make debugging easier- complete docbook documentation instead of this wiki
Here’s a sample of what you can do with Augeas:
$aug = new Augeas(); // let's disable register_globals! $aug->set("/files/etc/php.ini/PHP/register_globals", "Off"); if (!$aug->save()) { die("You do not have enough privileges to edit php.ini file."); }
How easy was that? No regex, no fopen, no hassle.




