2017 © Pedro Peláez
 

library cascader

Utility for creating objects in PHP from constructor parameters definitions.

image

nikolaposa/cascader

Utility for creating objects in PHP from constructor parameters definitions.

  • Sunday, June 11, 2017
  • by nikolaposa
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,167 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 24 % Grown

The README.md

Cascader

![Build Status][ico-build] ![Code Quality][ico-code-quality] Code Coverage Latest Version PDS Skeleton, (*1)

Cascader enables the creation of objects from array definitions that represent constructor parameters. Given the class name and creation options array, it will try to create a target object, also creating nested objects that may exist. Convenient as a factory for generic kind of objects., (*2)

Installation

The preferred method of installation is via Composer. Run the following command to install the latest version of a package and add it to your project's composer.json:, (*3)

composer require nikolaposa/cascader

Usage

$cascader = new Cascader();

$object = $cascader->create(RootObject::class, [
    'name' => 'foo',
    'sub_object' => [
        'category' => 'bar',
        'count' => 10,
    ],
    'is_active' => true,
]);

See more examples., (*4)

Credits

License

Released under MIT License - see the License File for details., (*5)

The Versions

11/06 2017

dev-master

9999999-dev

Utility for creating objects in PHP from constructor parameters definitions.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

generic factory cascade instantiate cascade-creation

11/06 2017

1.0.0

1.0.0.0

Utility for creating objects in PHP from constructor parameters definitions.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

generic factory cascade instantiate cascade-creation

09/06 2017

0.1.0

0.1.0.0

Utility for creating PHP objects from the array that represents constructor parameters.

  Sources   Download

MIT

The Requires

 

The Development Requires

array object cascade instantiate