Skip to content

zephia/la-voz

Repository files navigation

La Voz Feed Generator

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

Installation

Using composer

$ composer require zephia/la-voz

Usage

<?php

// Instantiate serializer with configurations.
$serializer = \JMS\Serializer\SerializerBuilder::create()
   ->addMetadataDir(__DIR__ . '/resources/config/serializer')
   ->build();

// Generate document feed
$document = new Zephia\LaVozFeed\Document($serializer);

// Generate Ad list
$adBag = new \Zephia\LaVozFeed\Entity\AdBag;

$document->generate($adBag);

// <?xml version="1.0" encoding="UTF-8"?>
// <data/>