italystrap/config

ItalyStrap Config Module - a simple and useful configuration package the OOP way

2.7.0 2023-08-15 16:48 UTC

README

Build status Latest Stable Version Total Downloads Latest Unstable Version License PHP from Packagist

ItalyStrap Config Module - a simple and useful configuration package the OOP way

Table Of Contents

Installation

The best way to use this package is through Composer:

composer require italystrap/config

Basic Usage

use ItalyStrap\Config\Config;

$config = new Config($configObjOrArrayOptional, $configDefaultOptional);

$value = $config->get('key', $optionalDefaultValue); 

Advanced Usage

You can see more advanced example in the tests' folder.

Deprecation

List of all deprecated method that will be removed in the next major release.

  • Config::push() => Config::set()
  • Config::add() => Config::set()
  • Config::remove() => Config::delete()
  • Config::all() => Config::toArray()
  • ConfigThemeMods::class

Contributing

All feedback / bug reports / pull requests are welcome.

License

Copyright (c) 2019 Enea Overclokk, ItalyStrap

This code is licensed under the MIT.

Credits

Ideas for the Config::class from:

For the Notation Array Search:

For some ideas: