2017 © Pedro Peláez
 

library iniliq

An ini parser for inherited values through multiple configuration files

image

pixel418/iniliq

An ini parser for inherited values through multiple configuration files

  • Tuesday, March 18, 2014
  • by Pixel418
  • Repository
  • 0 Watchers
  • 7 Stars
  • 7,800 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 20 Versions
  • 7 % Grown

The README.md

Iniliq Build Status

An ini parser for inherited values through multiple configuration files, (*1)

  1. Let's code
    1.1 Json Values
    1.2 Deep selectors
    1.3 File inheritance
    1.4 Appending
    1.5 Reducing
  2. How to Install
  3. How to Contribute
  4. Author & Community

Let's code

Json values

; json-values.ini
[Readme]
example = { json: yeah, is-it: [ good, great, awesome ] }
$ini = ( new \Pixel418\Iniliq\IniParser )->parse( 'json-values.ini' );
// [ 'Readme' => [ 'example' => [ 'json' => 'yeah', 'is-it' => [ 'good', 'great', 'awesome' ] ] ] ]

↑ top, (*2)

Deep selectors

; deep-selectors.ini
[Readme]
example.selectors.deep = nice
$ini = ( new \Pixel418\Iniliq\IniParser )->parse( 'deep-selectors.ini' );
// [ 'Readme' => [ 'example' => [ 'selectors' => [ 'deep' => 'nice' ] ] ]
get_class( $ini );
// Pixel418\Iniliq\ArrayObject
$ini[ 'Readme.example.selectors.deep' ]
// nice
$ini[ 'Readme.example.selectors.deep' ] = 'amusing'
// [ 'Readme' => [ 'example' => [ 'selectors' => [ 'deep' => 'amusing' ] ] ]

↑ top, (*3)

File inheritance

; base.ini
[Readme]
example[name] = John Doe
example[id] = 3
; file-inheritance.ini
[Readme]
example.name = file-inheritance
$ini = ( new \Pixel418\Iniliq\IniParser )->parse( [ 'base.ini', 'file-inheritance.ini' ] );
// [ 'Readme' => [ 'example' => [ 'name' => 'file-inheritance', 'id' => '3' ] ] ]

↑ top, (*4)

Appending

; list.ini
[Readme]
musketeers.name[ ] = Athos
musketeers.name[ ] = Porthos
musketeers.name[ ] = "D'Artagnan"
; adding-values.ini
[Readme]
musketeers.name += [ Aramis ]
$ini = ( new \Pixel418\Iniliq\IniParser )->parse( [ 'list.ini', 'adding-values.ini' ] );
// [ 'Readme' => [ 'musketeers' => [ 'Athos', 'Porthos', 'D\'Artagnan', 'Aramis' ] ] ]

↑ top, (*5)

Reducing

; list.ini
[Readme]
musketeers.name[ ] = Athos
musketeers.name[ ] = Porthos
musketeers.name[ ] = "D'Artagnan"
; removing-values.ini
[Readme]
musketeers.name -= "[ D'Artagnan ]"
$ini = ( new \Pixel418\Iniliq\IniParser )->parse( [ 'list.ini', 'removing-values.ini' ] );
// [ 'Readme' => [ 'musketeers' => [ 'Athos', 'Porthos' ] ] ]

↑ top, (*6)

How to Install

If you don't have composer, you have to install it., (*7)

Add or complete the composer.json file at the root of your project, like this :, (*8)

{
    "require": {
        "pixel418/iniliq": "0.3.2"
    }
}

Iniliq can now be downloaded via composer., (*9)

Lastly, to use it in your PHP, you can load the composer autoloader :, (*10)

require_once( './vendor/autoload.php' );

↑ top, (*11)

How to Contribute

  1. Fork the Iniliq repository
  2. Create a new branch for each feature or improvement
  3. Send a pull request from each feature branch to the develop branch

If you don't know much about pull request, you can read the Github article., (*12)

All pull requests must follow the PSR1 standard and be accompanied by passing phpunit tests., (*13)

↑ top, (*14)

Author & Community

Iniliq is under the MIT License.
It is created and maintained by Thomas ZILLIOX., (*15)

↑ top, (*16)

The Versions

18/03 2014

dev-master

9999999-dev https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

18/03 2014

dev-develop

dev-develop https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

10/05 2013

v0.3.2

0.3.2.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

13/03 2013

v0.3.1

0.3.1.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

12/03 2013

v0.3.0

0.3.0.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

11/03 2013

v0.2.5

0.2.5.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

11/03 2013

v0.2.4

0.2.4.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

09/03 2013

v0.2.3

0.2.3.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

03/03 2013

v0.2.2

0.2.2.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

26/02 2013

v0.2.1

0.2.1.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

24/02 2013

v0.2.0

0.2.0.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

19/01 2013

v0.1.8

0.1.8.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

19/01 2013

v0.1.7

0.1.7.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

18/01 2013

v0.1.6

0.1.6.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

17/01 2013

v0.1.5

0.1.5.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

17/01 2013

v0.1.4

0.1.4.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

16/01 2013

v0.1.3

0.1.3.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

16/01 2013

v0.1.1

0.1.1.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

16/01 2013

v0.1.2

0.1.2.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini

16/01 2013

v0.1.0

0.1.0.0 https://github.com/Pixel418/Iniliq

An ini parser for inherited values through multiple configuration files

  Sources   Download

MIT

The Requires

 

ini