Skip to content

Releases: ItalyStrap/config

Config API v2.2.1

30 Dec 22:08
Compare
Choose a tag to compare

New version

This fixes "Argument of an invalid type ItalyStrap\Config\ConfigInterface supplied for foreach, only iterables are supported.# was not matched in reported errors."

Config API v2.2.0

26 Dec 17:14
Compare
Choose a tag to compare

New Version

Added cloning behavior, now when you clone the object you will gat and empty one, usefull if you need a new empty instance.

Added child class for hooking the getter method. (Not yet ready for production, maybe need more test)

Fix

Fixed a bug when you call Config::has() and Config::get() more than once consecutively

Removed

Removed the ability to call builtin array function, maybe in future they will be added with a decorator or a proxy.

Config API v2.1.1

25 Nov 06:41
Compare
Choose a tag to compare

This fix the license issue, I forgot to link the new license file in readme.

Config API v2.1.0

23 Nov 19:36
Compare
Choose a tag to compare

New version

This is not a breacking changes but a little refactoring was made for implementing the new API for searching array sub keys.

Now $config->has( $key ) and $config->get( $key ) can find sub values on the array storage with dot separator $config->get( 'key.subkey' ) .

Only the $config->push( $key, $value ) is deprecated in favour of $config->add( $key, $value )

New methods

$config->toArray() // Return the array storage
$config->toJson() // Return the json of the array storage

Only for internal use you can also call the array_* builtin functions like this

$config->array_keys() // Return all storage keys

Remeber that this is not ready for production.

New interface and factory to use

use ItalyStrap\Config\ConfigInterface

and

ConfigFactory::make( $arr, $aar1 );

The old Config_Interface and Config_Factory are deprecated for PSR compatibility

Config API v2.0.0

01 Apr 09:26
Compare
Choose a tag to compare

Changed API to PHP7 compat.

New method class::remove();

class::remove( 'key' );
class::remove( [ 'key ] );
class::remove( 'key', [ 'key' ] );

Config API v1.1.0

27 Nov 11:07
Compare
Choose a tag to compare

Added some tests
Added new Method ::merge( $array );

Config API v1.0.0

23 Nov 19:44
Compare
Choose a tag to compare

Stable version

Config API v0.0.1-alpha

06 May 10:30
Compare
Choose a tag to compare

Alpha version for the PHP config library