News Feed
Sections




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

Nikita Popov's Blog:
A plea for less (XML) configuration files
July 10, 2012 @ 10:09:27

Nikita Popov has posted a plea to developers and project maintainers alike to stop using XML for their configuration files in their PHP-based applications.

I recently tried using Phing (a PHP build system) to do some simple release automation. Just creating a PEAR package and doing a few string replacements here and there. The result? After several wasted hours I ended up using Phing only for PEAR packaging and doing everything else in a custom PHP build script. The reason? Phing uses XML files to configure what it should do during a build.

He advocates a more native solution - a PHP script that defines the configuration options as a part of an object that can be injected into the parts of your app without the need for external dependencies.

0 comments voice your opinion now!
configuration file xml native object opinion


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Proper Layer files when using Dojo with Zend Framework

Brandon Savage's Blog: How To Win Developers and Influence Code Quality

Evert Pot's Blog: PHP WebDAV Integration Library

PHPit.net: PHP 5 Objects, Patterns and Practice

Adam Gotterer's Blog: Building an Object Collection Manager with the Standard PHP Library (SPL)


Community Events





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


deployment api introduction community release threedevsandamaybe framework conference laravel voicesoftheelephpant list language tips zendserver series podcast symfony code bugfix interview

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