zephia / la-voz
La Voz Feed Generator
v1.0.2
2017-01-10 20:08 UTC
Requires
- php: >5.6
- jms/serializer: ^1.4
- symfony/yaml: ^3.1
Requires (Dev)
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2024-11-10 00:33:51 UTC
README
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/>