2017 © Pedro Peláez
 

library psrcontainerfactory

Factory callable that creates and returns a Pimple PSR-11 Container

image

germania-kg/psrcontainerfactory

Factory callable that creates and returns a Pimple PSR-11 Container

  • Thursday, February 15, 2018
  • by germania-kg
  • Repository
  • 2 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

GermaniaKG · psrcontainerfactory

Packagist PHP version Build Status Scrutinizer Code Quality Code Coverage Build Status, (*1)

Installation with Composer

$ composer require germania-kg/psrcontainerfactory

The PsrContainerFactory works with both Pimple DIC or PHP-DI. One of these must be installed. – N.B. that Pimple has aged and PHP-DI has evolved becoming kind of the DI library standard., (*2)

$ composer require php-di/php-di
$ composer require pimple/pimple

Usage

The callable accepts arrays, StdClass objects and other instances of ContainerInterface., (*3)

<?php
use Germania\PsrContainerFactory\PsrContainerFactory;
use Psr\Container\ContainerInterface;

$psr11 = (new PsrContainerFactory)([
    'foo' => 'bar'
]);
// yay!
echo ($psr_11 instanceOf ContainerInterface) ? "yay!" : "noe?";

Issues

See full issues list., (*4)

Roadmap

Fill in planned or desired features, (*5)

Development

$ git clone https://github.com/GermaniaKG/psrcontainerfactory.git
$ cd psrcontainerfactory
$ composer install

Unit tests

Either copy phpunit.xml.dist to phpunit.xml and adapt to your needs, or leave as is. Run PhpUnit test or composer scripts like this:, (*6)

$ composer test
# or
$ vendor/bin/phpunit

The Versions

15/02 2018

dev-develop

dev-develop

Factory callable that creates and returns a Pimple PSR-11 Container

  Sources   Download

MIT

The Requires

 

The Development Requires

by Carsten Witt

15/02 2018

dev-master

9999999-dev

Factory callable that creates and returns a Pimple PSR-11 Container

  Sources   Download

MIT

The Requires

 

The Development Requires

by Carsten Witt

15/02 2018

1.0.1

1.0.1.0

Factory callable that creates and returns a Pimple PSR-11 Container

  Sources   Download

MIT

The Requires

 

The Development Requires

by Carsten Witt

15/02 2018

1.0.0

1.0.0.0

Factory callable that creates and returns a Pimple PSR-11 Container

  Sources   Download

MIT

The Requires

 

The Development Requires

by Carsten Witt