News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joshua Thijssen's Blog:
Using augeas (in PHP)
June 04, 2012 @ 08:17:56

In this new post to his blog, Joshua Thijssen looks at using the Augeas tool in a PHP application. Augeas is a configuration editing tool, making it easy to parse many different types of configs and transform them into a tree structure.

Even though I really like using sed and awk, sometimes its hard to change or add parameters in configuration files. Big sed statements that may or may not work, double checking if everything has been done correctly etc. Augeas is a really cool tool that lets you view / add / modify and delete all kind of data from configuration files. If you are using Puppet, you are probably aware of this tool, but I notice that a lot of PHP developers have never heard of it.. Let's explore..

He shows an example of a configuration file and how the "augtool" command line script can be used to modify one of them. He then shows how to use the tool's library to set the server's "date.timezone" setting in the php.ini.

0 comments voice your opinion now!
augeas commandline library configuration files


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend Framework 2.0: Dependency Injection (Part 1)

Kore Nordmann's Blog: Published article "Image creation with PHP"

SitePoint PHP Blog: Using Solarium with SOLR for Search - Setup

Ralph Schindler's Blog: PHP: Environments, Libraries, and Applications - Oh My!

Tim Koschuetzki's Blog: Parsing XML With The DOM Library


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant opinion introduction laravel5 series laravel podcast php7 library unittest list release version framework interview extension api example language community

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework