https://github.com/gemorroj/test8bitbundle
test 8bit
https://github.com/gemorroj/test8bitbundle
Last synced: 3 months ago
JSON representation
test 8bit
- Host: GitHub
- URL: https://github.com/gemorroj/test8bitbundle
- Owner: Gemorroj
- Created: 2016-08-21T12:08:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-21T13:05:45.000Z (almost 9 years ago)
- Last Synced: 2025-01-13T16:19:10.726Z (5 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Test8bitBundle
==================Тестовое задание 8bit
### Installation:
- Add to composer.json:
```json
{
"require": {
"gemorroj/test8bit-bundle": "dev-master"
}
}
```- Add to AppKernel.php:
```php
new Gemorroj\Test8bitBundle\Test8bitBundle(),
```### Requirements:
- PHP >= 5.5.9
- Symfony >= 3.0### Simple example:
```php
$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
))
)
)
)
*/
```