Download the PHP package romm/configuration-object without Composer
On this page you can find all versions of the php package romm/configuration-object. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download romm/configuration-object
More information about romm/configuration-object
Files in romm/configuration-object
Download romm/configuration-object
More information about romm/configuration-object
Files in romm/configuration-object
Vendor romm
Package configuration-object
Short Description Transform any configuration plain array into a dynamic and configurable object structure, and pull apart configuration handling from the main logic of your script. Use provided services to add more functionality to your objects: cache, parents, persistence and much more.
License GPL-3.0-or-later
Package configuration-object
Short Description Transform any configuration plain array into a dynamic and configurable object structure, and pull apart configuration handling from the main logic of your script. Use provided services to add more functionality to your objects: cache, parents, persistence and much more.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package configuration-object
Configuration Object
Warning This package is no longer maintained. As a more stable alternative, you may use package
cuyz/valinor
.
ℹ️ Show more info
> [![Build Status](https://travis-ci.org/romm/configuration_object.svg?branch=master)](https://travis-ci.org/romm/configuration_object) [![Coverage Status](https://coveralls.io/repos/github/romm/configuration_object/badge.svg?branch=master)](https://coveralls.io/github/romm/configuration_object?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/romm/configuration_object/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/romm/configuration_object/?branch=master) [![Latest Stable Version](https://poser.pugx.org/romm/configuration-object/v/stable)](https://packagist.org/packages/romm/configuration-object) [![Total Downloads](https://poser.pugx.org/romm/configuration-object/downloads)](https://packagist.org/packages/romm/configuration-object) [![SensioLabs Insight](https://img.shields.io/sensiolabs/i/86ddd9e0-ff29-4886-b04a-a8e27997a6af.svg)](https://insight.sensiolabs.com/projects/86ddd9e0-ff29-4886-b04a-a8e27997a6af) [![StyleCI](https://styleci.io/repos/66448948/shield?branch=master)](https://styleci.io/repos/66448948) > :heavy_exclamation_mark: *This PHP library has been developed for [![TYPO3](Resources/Public/Images/typo3-icon.png)TYPO3 CMS](https://typo3.org) and is intended to TYPO3 extension developers.* > :arrow_right: *You can find the whole documentation on the [TYPO3 official website](https://docs.typo3.org/typo3cms/extensions/configuration_object/), or even download the [:link:PDF version](https://docs.typo3.org/typo3cms/extensions/configuration_object/_pdf/)*. --- ## Introduction ![Configuration Object](Documentation/Images/[email protected]) **Configuration Object** provides **powerful tools for handling configuration trees**, by converting any **configuration plain array** (which can come from sources like **TypoScript, JSON, XML**) into a much more **flexible PHP object structure**. Its principal goal is to **pull apart the configuration handling from the main logic of an application**, so the script can focus on **using the already validated configuration during its whole process**. ### Problem When a script uses a configuration tree to handle parts of an application, this tree is often **analyzed step by step during the script execution**; if a value contains a mistake, the script can be forced to stop, too early (*the whole process did not run entirely*) but also too late (*some sensitive operations may already have run*). Moreover, **the deeper** the configuration tree is, **the harder** it is to handle and prevent all the possible configuration mistakes. When it comes to configuration which may be customized by any third-party user (which happens often in TYPO3 thanks to TypoScript), validation rules have to be **well thought and strong** to prevent the user from breaking your own API scripts because of a configuration mistake. ### Solution Use **Configuration Object** to export the handling of your configuration: let the whole **creation and validation processes be managed outside of your application**, and enjoy the **many other features provided by the API** (cache management, parents, persistence and more). It is **simple, fast and reliable**. ## Example Imagine you have this configuration array: While this example is quite simple, it allows us to understand easily how this API works. Below stands an example of how this configuration could look like using **Configuration Object API**. You can see that **two services** are used: - **Cache service** It will store the whole company object, and its sub-objects, in a cache entry after they have been created. This will improve performances for next times the object must be fetched. - **Parents service** With this service, the class `Employee` is able to retrieve the data from its parent (the class `Company`). In this example, we use it to dynamically generate an email address for the employee, if none was assigned. ---All versions of configuration-object with dependencies
PHP Build Version
Package Version
The package romm/configuration-object contains the following files
Loading the files please wait ....