zephia / olx
OLX Feed Generator
v1.2.2
2017-04-05 18:09 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: 2025-01-04 21:39:13 UTC
README
Documentation
Official OLX documentation about the OLX feed, can be found here
Installation
Using composer
$ composer require zephia/olx
Usage
<?php // Instantiate serializer with configurations. $serializer = \JMS\Serializer\SerializerBuilder::create() ->addMetadataDir(__DIR__ . '/resources/config/serializer') ->build(); // Generate document feed $document = new Zephia\OLXFeed\Document($serializer); // Generate Ad list $adBag = new \Zephia\OLXFeed\Entity\AdBag; $document->generate($adBag); // <?xml version="1.0" encoding="UTF-8"?> // <ads/>