2017 © Pedro Peláez
 

library container

PHP Container

image

isholao/container

PHP Container

  • Tuesday, November 21, 2017
  • by isholao
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Install

To install with composer:, (*2)

composer require isholao/container

Requires PHP 7.1 or newer., (*3)

Usage

Here's a basic usage example:, (*4)


<?php require '/path/to/vendor/autoload.php'; $c = new \Isholao\Container\Container(); $c->set('name','ishola'); // $c->name = 'ishola'; if($c->has('name')) { echo $c->get('name'); // $c->name; } $c->protected('response', function (){}); $c->response();

Protecting an item. Define it will the protect method, (*5)


<?php require '/path/to/vendor/autoload.php'; $c = new \Isholao\Container\Container(); $c->protect('name','ishola'); $c->name = 'ishola'; // throw error

The Versions

21/11 2017

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/isholao/container

PHP Container

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Ishola O

middleware

21/11 2017

1.0

1.0.0.0 https://github.com/isholao/container

PHP Container

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Ishola O

middleware