mauro-moreno/datafactory-client

Datafactory LA API Client

0.1.5 2018-12-18 18:28 UTC

This package is auto-updated.

Last update: 2024-11-29 01:55:21 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

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);