gemorroj / test8bit-bundle
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ^6.2
- litipk/php-bignumbers: ^0.7
- symfony/framework-bundle: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is auto-updated.
Last update: 2024-12-08 22:19:27 UTC
README
Тестовое задание 8bit
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 ) ) ) ) ) */