2017 © Pedro Peláez
 

symfony-bundle test8bit-bundle

image

gemorroj/test8bit-bundle

  • Sunday, August 21, 2016
  • by Gemorroj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Test8bitBundle

Тестовое задание 8bit, (*1)

Installation:

  • Add to composer.json:
{
    "require": {
        "gemorroj/test8bit-bundle": "dev-master"
    }
}
  • Add to AppKernel.php:
    new Gemorroj\Test8bitBundle\Test8bitBundle(),

Requirements:

  • PHP >= 5.5.9
  • Symfony >= 3.0

Simple example:

$entity = $this->get('test8bit')->getData('https://raw.githubusercontent.com/Gemorroj/Test8bitBundle/master/Tests/fixtures/success.json');
print_r($entity);
/*
Gemorroj\Test8bitBundle\Entity\Test8bitEntity Object
(
    [locations:Gemorroj\Test8bitBundle\Entity\Test8bitEntity:private] => Array
        (
            [0] => Gemorroj\Test8bitBundle\Entity\Test8bitLocationEntity Object
                (
                    [name:Gemorroj\Test8bitBundle\Entity\Test8bitLocationEntity:private] => Eiffel Tower
                    [coordinates:Gemorroj\Test8bitBundle\Entity\Test8bitLocationEntity:private] => Gemorroj\Test8bitBundle\Entity\Test8bitLocationCoordinateEntity Object
                        (
                            [lat:Gemorroj\Test8bitBundle\Entity\Test8bitLocationCoordinateEntity:private] => Litipk\BigNumbers\Decimal Object
                                (
                                    [value:protected] => 21.12
                                    [scale:Litipk\BigNumbers\Decimal:private] => 2
                                )

                            [long:Gemorroj\Test8bitBundle\Entity\Test8bitLocationCoordinateEntity:private] => Litipk\BigNumbers\Decimal Object
                                (
                                    [value:protected] => 19.56
                                    [scale:Litipk\BigNumbers\Decimal:private] => 2
                                )

                        )

                )

            [1] => Gemorroj\Test8bitBundle\Entity\Test8bitLocationEntity Object
                (
                    [name:Gemorroj\Test8bitBundle\Entity\Test8bitLocationEntity:private] => test
                    [coordinates:Gemorroj\Test8bitBundle\Entity\Test8bitLocationEntity:private] => Gemorroj\Test8bitBundle\Entity\Test8bitLocationCoordinateEntity Object
                        (
                            [lat:Gemorroj\Test8bitBundle\Entity\Test8bitLocationCoordinateEntity:private] => Litipk\BigNumbers\Decimal Object
                                (
                                    [value:protected] => 12.34
                                    [scale:Litipk\BigNumbers\Decimal:private] => 2
                                )

                            [long:Gemorroj\Test8bitBundle\Entity\Test8bitLocationCoordinateEntity:private] => Litipk\BigNumbers\Decimal Object
                                (
                                    [value:protected] => 56.78
                                    [scale:Litipk\BigNumbers\Decimal:private] => 2
                                )

                        )

                )

        )

)
*/

The Versions