mauro-moreno / datafactory-client
Datafactory LA API Client
0.1.5
2018-12-18 18:28 UTC
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ^6.1.0
- jms/serializer: ^1.8
- symfony/yaml: ^3.3
Requires (Dev)
- phpunit/phpunit: 6.4.x-dev
README
DataFactory LA API client
Installation
composer require mauro-moreno/datafactory-client
Usage
<?php // Instantiate client $client = new \MauroMoreno\DataFactory\Client(); // Call get channels resource $content = $client->getChannels(); // Instantiate serializer with configurations. $serializer = \JMS\Serializer\SerializerBuilder::create() ->addMetadataDir(__DIR__ . '/resources/config/serializer') ->build(); // Instantiate document $document = new \MauroMoreno\DataFactory\Document($serializer); // Parse resource contents $document->parseChannels($content);