PHP Classes
elePHPant
Icontem

PHP Configuration Trait: Load and save class configuration using a trait

Recommend this page to a friend!
  Info   View files Example   View files View files (21)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-08-07 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 309 This week: 3All time: 6,907 This week: 377Up
Version License PHP version Categories
configuration-trait 2.9MIT/X Consortium ...5.3PHP 5, Language, Configuration, Traits
Description Author

This package can load and save class configuration using a trait.

It defines a trait that can load and save configuration values into a variable from files in different formats.

Currently it supports the configuration file formats using Zend framework configuration classes: INI, XML, PHP array, JSON and YAML.

Innovation Award
PHP Programming Innovation award nominee
September 2015
Number 5


Prize: One downloadable e-book of choice by O'Reilly
Many classes have behaviors that can be configured using external configuration files loaded at run-time.

This package provides a common PHP trait that can easily add load and save configuration capabilities to any class using files in many formats: INI, XML, PHP Array, JSON and YAML.

Manuel Lemos
Picture of Asher Wolfstein
  Performance   Level  
Name: Asher Wolfstein <contact>
Classes: 15 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Files folder imageFalcraft (2 files, 2 directories)
Files folder imagesrc (1 directory)
Files folder imagetests (1 directory)
Accessible without login Plain text file composer.json Conf. composer
Accessible without login Plain text file LICENSE.txt Lic. MIT License
Accessible without login Plain text file phpunit.xml Test unit test config

  Files folder image Files  /  Falcraft  
File Role Description
Files folder imageFeatures (2 files, 2 directories)
Files folder imagetests (1 directory)
  Accessible without login Plain text file composer.json Data Zend Framework
  Accessible without login Plain text file README.txt Doc. Important Version Information

  Files folder image Files  /  Falcraft  /  Features  
File Role Description
Files folder imageException (2 files)
Files folder imageResource (1 file)
  Plain text file Configuration.php Class The Trait
  Accessible without login Plain text file falcraftLoad.php Aux. Loader for Falcraft

  Files folder image Files  /  Falcraft  /  Features  /  Exception  
File Role Description
  Plain text file ClassDependencyException.php Class Local Class Dependency Exception
  Plain text file ExceptionInterface.php Class Local Exception Interface

  Files folder image Files  /  Falcraft  /  Features  /  Resource  
File Role Description
  Plain text file ConfigurationInterface.php Class An interface for configuration implementors

  Files folder image Files  /  Falcraft  /  tests  
File Role Description
Files folder imageFeatures (4 files)

  Files folder image Files  /  Falcraft  /  tests  /  Features  
File Role Description
  Accessible without login Plain text file Configuration.php Example Test Script
  Accessible without login Plain text file test.ini Data ini format test file
  Accessible without login Plain text file test.json Data test json file
  Accessible without login Plain text file test.xml Data test xml file

  Files folder image Files  /  src  
File Role Description
Files folder imagePhabstractic (1 file, 1 directory)

  Files folder image Files  /  src  /  Phabstractic  
File Role Description
Files folder imageFeatures (1 file, 2 directories)
  Accessible without login Plain text file falcraftLoad.php Aux. class loader

  Files folder image Files  /  src  /  Phabstractic  /  Features  
File Role Description
Files folder imageException (3 files)
Files folder imageResource (1 file)
  Plain text file ConfigurationTrait.php Class main class (trait)

  Files folder image Files  /  src  /  Phabstractic  /  Features  /  Exception  
File Role Description
  Plain text file ClassDependencyException.php Class exception classification
  Plain text file ExceptionInterface.php Class basic exception interface
  Plain text file InvalidArgumentException.php Class exception classification

  Files folder image Files  /  src  /  Phabstractic  /  Features  /  Resource  
File Role Description
  Plain text file ConfigurationInterface.php Class configuration interface

  Files folder image Files  /  tests  
File Role Description
Files folder imagePhabstractic (1 directory)

  Files folder image Files  /  tests  /  Phabstractic  
File Role Description
Files folder imageFeatures (1 file)

  Files folder image Files  /  tests  /  Phabstractic  /  Features  
File Role Description
  Accessible without login Plain text file ConfigurationTrait.php Test unit test config

 Version Control Reuses Unique User Downloads Download Rankings  
 0%5
Total:309
This week:3
All time:6,907
This week:377Up