2017 © Pedro PelĂĄez
 

library commons

my commons classes used in so many projects

image

hvasoares/commons

my commons classes used in so many projects

  • Tuesday, September 3, 2013
  • by hvasoares
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

commons

Introduction

This repository is a bag of the classes used in my other projects. The most important class is Registry. The class is inspired in the concept showed on martin's fowler book Patterns of Enterprise Application Architecture. The main reason for its existence is dependency injection, I need some place to put my dependencies and I dont' found any good and plain implementation of this in PHP., (*1)

Requirements

  • Php version 5.3

Instalation

You can use composer, see the composer file in the root of the project. Only version above 1.0.4 will be there., (*2)

Example of use

$top = new \hvasoares\commons\Registry();

$obj = new stdClass;

$top['someObject'] = $obj;

$obj == $top['someObject']; //will return true

$child = new \hvasoares\commons\Registry($top);

$child['someObject'] == $top['someObject']; //will return true

$newObj = new stdClass;

$child['someObject'] = $newObj;

$child['someObject'] == $top['someObject']; //will return false

$child['someObject] == $newObj; //will return true

The Versions

03/09 2013

dev-master

9999999-dev

my commons classes used in so many projects

  Sources   Download

MPL

by Hugo VinĂ­cius Alves Soares

03/09 2013

1.0.5

1.0.5.0

my commons classes used in so many projects

  Sources   Download

MPL

by Hugo VinĂ­cius Alves Soares

13/07 2013

1.0.4

1.0.4.0

my commons classes used in so many projects

  Sources   Download

MPL

by Hugo VinĂ­cius Alves Soares

06/07 2013

1.0.3

1.0.3.0

my commons classes used in so many projects

  Sources   Download

oss

by Hugo VinĂ­cius Alves Soares

06/07 2013

1.0.2

1.0.2.0

my commons classes used in so many projects

  Sources   Download

oss

by Hugo VinĂ­cius Alves Soares

02/07 2013

1.0.0

1.0.0.0

  Sources   Download