2017 © Pedro Peláez
 

library interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

image

sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  • Tuesday, February 14, 2017
  • by sandrokeil
  • Repository
  • 9 Watchers
  • 49 Stars
  • 70,094 Installations
  • PHP
  • 37 Dependents
  • 23 Suggesters
  • 8 Forks
  • 2 Open issues
  • 11 Versions
  • 14 % Grown

The README.md

Interoperability Configuration

You want to configure your factories?, (*1)

You want to reduce your factory boilerplate code?, (*2)

You want to check automatically for mandatory options or merge default options?, (*3)

You want to have a valid config structure?, (*4)

You want to generate your configuration files from factory classes?, (*5)

This library comes to the rescue!, (*6)

Build Status Scrutinizer Quality Score Coverage Status Latest Stable Version Total Downloads License, (*7)

interop-config provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files., (*8)

  • Well tested. Besides unit test and continuous integration/inspection this solution is also ready for production use.
  • Framework agnostic This PHP library does not depends on any framework but you can use it with your favourite framework.
  • Every change is tracked. Want to know whats new? Take a look at CHANGELOG.md
  • Listen to your ideas. Have a great idea? Bring your tested pull request or open a new issue. See CONTRIBUTING.md

You should have coding conventions and you should have config conventions. If not, you should think about that. interop-config is universally applicable! See further documentation for more details., (*9)

Installation

The suggested installation method is via composer. For composer documentation, please refer to getcomposer.org., (*10)

Run composer require sandrokeil/interop-config to install interop-config. Version 1.x is for PHP < 7.1 and Version 2.x is for PHP >= 7.1., (*11)

Documentation

For the latest online documentation visit http://sandrokeil.github.io/interop-config/. Refer the Quick Start section for a detailed explanation., (*12)

Documentation is in the doc tree, and can be compiled using bookdown or Docker, (*13)

$ docker run -it --rm -v $(pwd):/app sandrokeil/bookdown doc/bookdown.json
$ docker run -it --rm -p 8080:8080 -v $(pwd):/app php:7.1-cli php -S 0.0.0.0:8080 -t /app/doc/html

or run bookdown, (*14)

$ ./vendor/bin/bookdown doc/bookdown.json
$ php -S 0.0.0.0:8080 -t doc/html/

Then browse to http://localhost:8080/, (*15)

Projects

This is a list of projects who are using interop-config interfaces (incomplete)., (*16)

Benchmarks

The benchmarks uses PHPBench and can be started by the following command:, (*17)

$ ./vendor/bin/phpbench run -v --report=table

or with Docker, (*18)

$ docker run --rm -it --volume $(pwd):/app prooph/php:7.1-cli-opcache php ./vendor/bin/phpbench run --report=table

You can use the group and filter argument to get only results for a specific group/filter., (*19)

These groups are available: perf, config, configId, mandatory, mandatoryRev and default, (*20)

These filters are available: can, options and fallback, (*21)

The Versions

14/02 2017

dev-master

9999999-dev https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

service php configuration config interop factory options standard interfaces

14/02 2017

2.1.0

2.1.0.0 https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

service php configuration config interop factory options standard interfaces

14/02 2017

dev-develop

dev-develop https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

service php configuration config interop factory options standard interfaces

09/12 2016

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

service php configuration config interop factory options standard interfaces

09/12 2016

2.0.1

2.0.1.0 https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

service php configuration config interop factory options standard interfaces

06/12 2016

2.0.0

2.0.0.0 https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

service php configuration config interop factory options standard interfaces

05/03 2016

1.0.0

1.0.0.0 https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

service php configuration config interop factory options standard interfaces

21/10 2015

0.3.1

0.3.1.0 https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a uniform config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

service php configuration config interop factory options standard interfaces

18/10 2015

0.3.0

0.3.0.0 https://github.com/sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a uniform config structure. It can also be used to auto discover factories and to create configuration files.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

service php configuration config interop factory options standard interfaces

20/09 2015

0.2.0

0.2.0.0 https://github.com/sandrokeil/interop-config

Provides interfaces and classes to create instances depending on configuration with mandatory param check and uniform config structure.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

service php configuration config interop factory options standard interfaces

05/09 2015

0.1.0

0.1.0.0 https://github.com/sandrokeil/interop-config

Provides interfaces and classes to create instances depending on configuration with mandatory param check and uniform config structure.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

service config interop options