Login   Register  
PHP Classes
elePHPant
Icontem

pConfig: Manage hierarchical configuration files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-03-08 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 927 All time: 3,586 This week: 1,735Up
Version License Categories  
pconfig 1.0Free for non-commercial...PHP 5, Files and Folders, Configuration
Description Author  

This class can be used to create and manage hierarchical configuration files.

The configuration is defined as a tree of unlimited depth on which the nodes may contain any type of values.

The class read and write the configuration to files. The class supports writing configuration files in a protected mode, which consists of generating a PHP script file that does not output anything if it is executed when it is directly accessible via the Web server. This way it does not exposes the information stored in the configuration file.

The class also supports writing configuration files in a synchronized mode, on which each change to configuration tree is automatically saved to the configurator file.

The class may also store comments to help other people understanding the data that is stored.

The generated configuration files are automatically indented according to the depth of the nodes.

Picture of Guilherme Blanco
Name: Guilherme Blanco is available for providing paid consulting. Contact Guilherme Blanco .
Classes: 5 packages by
Country: Brazil Brazil
Age: 31
All time rank: 20614 in Brazil Brazil
Week rank: 1877 Down135 in Brazil Brazil Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imagedocs (3 files)
Plain text file class.pConfig.php Class Full Class Source
Accessible without login Plain text file config_generated.ini.php Output Generated Output
Accessible without login Plain text file test_config.php Example First Test
Accessible without login Plain text file test_config2.php Example Second Test

  Files folder image Files  /  docs  
File Role Description
  Accessible without login HTML file pConfig.html Doc. pConfig API
  Accessible without login HTML file pConfig_INDEX.html Doc. pConfig INDEX
  Accessible without login Plain text file stylesheet.css Data CSS Definitions

Downloadpconfig-2005-03-08.zip 10KB
Downloadpconfig-2005-03-08.tar.gz 7KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
pTree Download .zip .tar.gz Used to manage Tree Structure Required
 Version Control Unique User Downloads Download Rankings  
 0%Total:927All time:3,586
 This week:0This week:1,735Up
 User Comments (1)  
 
Excellent
5 years ago (kishore kumar)
80%StarStarStarStarStar