2017 © Pedro Peláez
 

library felicity-config

Easy set and get of config in PHP

image

felicity-php/felicity-config

Easy set and get of config in PHP

  • Sunday, November 26, 2017
  • by felicity-php
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

About Felicity Config

Felicity Config provides a very easy way to set and get config in PHP, (*1)

Usage

Set config with the static set method, or if passing Config::getInstance() in via dependency injection, use the setItem method., (*2)

<?php

use felicity\config\Config;

Config::set('myConfig', 'myVal');
Config::set('myArrayConfig.MyArrayKey.MyOtherKey', 'myVal')
    ->setItem('MyOtherConfig', 'MyOtherVal');

Get config with the static get method, or if passing Config::getInstance() in via dependency injection, use the getItem method., (*3)

<?php

use felicity\config\Config;

$myConfig = Config::get('myConfig', 'defaultVal');
$myOtherConfig = Config::get('MyConfigArray.MyConfigKey');

License

Copyright 2017 BuzzingPixel, LLC, (*4)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0., (*5)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*6)

The Versions

26/11 2017

dev-master

9999999-dev

Easy set and get of config in PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

26/11 2017

1.1.1

1.1.1.0

Easy set and get of config in PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

26/11 2017

1.0.0

1.0.0.0

Easy set and get of config in PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires