helionogueir/typeboxing

Specific data types and tools for hitting type

v1.1.0 2016-12-09 18:20 UTC

This package is not auto-updated.

Last update: 2024-04-08 11:26:08 UTC


README

Specific data types and tools for hitting type.

Installation

Composer (https://getcomposer.org/) and (https://packagist.org/)

composer require helionogueir/typeboxing

Usage

helionogueir\typeBoxing\parse\ObjectToArray

Parse object to array

use stdClass;
use helionogueir\typeBoxing\parse\ObjectToArray;
$Object = new stdClass();
$Object->d1 = new stdClass();
$Object->d1->d2 = null;
$array = (new ObjectToArray())->parse($Object);

TDD (Test Driven Development)

PHPUnit (https://phpunit.de/)

phpunit -c ./typeboxing/tests/unit.xml