PHPackages                             derkien/eight-bit-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. derkien/eight-bit-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

derkien/eight-bit-bundle
========================

Get data from service and show it

1.0.3(9y ago)020MITPHPPHP &gt;=7.0.0

Since Apr 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Derkien/eight-bit)[ Packagist](https://packagist.org/packages/derkien/eight-bit-bundle)[ RSS](/packages/derkien-eight-bit-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Symfony3 bundle for getting JSON-encoded locations data
=======================================================

[](#symfony3-bundle-for-getting-json-encoded-locations-data)

Implemented Symfony3 bundle for getting JSON-encoded locations data stored in predefined format (see data examples [here](https://github.com/Derkien/eight-bit/tree/master/EightBitBundle/Resources/data)).

Description
-----------

[](#description)

- Client defined as a service class in a bundle config;
- Client utilize CURL as a transport layer and rely upon third-party bundle [sensio/buzz-bundle](https://github.com/sensiolabs/SensioBuzzBundle);
- Properly defined exceptions are thrown on CURL errors, malformed JSON response and error JSON response;
- Resulting data are fetched as an array of properly defined PHP objects (`EightBitBundle\Entity\Location`).

Installation
------------

[](#installation)

*If you don't have symfony installed - go [here](http://symfony.com/doc/current/setup.html).*

Installing the bundle via packagist is the quickest and simplest method of installing the bundle. Here are the steps:

### Step 1: Composer require

[](#step-1-composer-require)

```
$ php composer.phar require derkien/eight-bit-bundle 1.*

```

### Step 2: Enable the bundle in the kernel

[](#step-2-enable-the-bundle-in-the-kernel)

```
