gabidj/scontainer

Simple Container for PHP & Zend Expressive

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

pkg:composer/gabidj/scontainer

dev-master / 1.0.x-dev 2016-04-04 13:32 UTC

This package is auto-updated.

Last update: 2025-10-20 14:48:00 UTC


README

Simple Container for Expressive

Simple Container created for understanding (basic) Container mechanism in Zend Expressive

Installation:

composer require 'gabidj/scontainer'

Security notice:

  • SContainer was made to help understanding how Container/Service Management works in Zend Expressive
  • You should NOT use SContainer in production environment

Usage

  • Container configuration:
<?php

use GabiDJ\Expressive\SContainer\SContainer as Container ;

// Load configuration
$config = require __DIR__ . '/config.php';

// Build container with given config
$container = new Container($config);

return $container;

Your /config/container.php file should reflect these settings in order to work with SContainer

Support

  • Ask me anything about this project: twitter.com/GabiSuciu
  • For support or suggestions visit: www.dotkernel.com/blog/