News Feed
Sections




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

Matthew Weir O'Phinney's Blog:
Introducing Phly_Struct and Phly_Config
May 20, 2006 @ 10:01:28

Matthew Weir O'Phinney has created his own modules that he shares in this post today - one to manage the config data for the application and another to act as a bridge between the scripts and that configuration store.

I often find myself needing a configuration module of some sort -- for storing application parameters, bootstrapping, template variables, what have you. The problem, however, is: once I bring them into my project, how can I access them? Better yet, would there be a way to bring in configurations of many types and still access them all in the same way?

He looked into several of the methods out there, but wasn't pleased with any of them - so he created his own, the Phly_Struct and Phly_Config modules. He talks briefly about what they are, but gets quickly into the code examples to prove their worth. It's a basic example tying the two of them together and loading some simple values into an instance of the Phly_Config. Both are available from the PHLY: PHP Library PEAR channel.

0 comments voice your opinion now!
modules configuration store struct interface library modules configuration store struct interface library


blog comments powered by Disqus

Similar Posts

Richard Davey's Blog: PDO SQLite support just doesn't work fully?

Rafael Dohms' Blog: Using theFacebook PHP-SDK to run FQL

DevShed: User-defined interfaces in PHP 5 - Implementing (X)HTML Widgets

Mike Naberezny's Blog: Horde/Yaml 1.0 Released

WebMonkey: A Truly del.icio.us API


Community Events

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


laravel symfony2 example introduction series performance voicesoftheelephpant api conference release opinion application version php7 interview composer community library framework podcast

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