puniserv/cli-converter

PHP CLI converter

1.1.0 2019-07-19 16:42 UTC

This package is not auto-updated.

Last update: 2024-05-14 12:26:12 UTC


README

Converter use symfony DI, symfony console application and GuzzleHTTP.
Feed month in pubDate column will be translated by system to locale set in converter configuration.

How to use (standalone)

Transform feed http link into csv file and overwrite existing file

$ php src/console.php csv:simple SOURCE_URL PATH_TO_SAVE

Transform feed http link into csv file and extend existing file

$ php src/console.php csv:extended SOURCE_URL PATH_TO_SAVE

Installation

PHP7.1 Required with libxml, simplexml, json extensions

$ git clone https://github.com/puniserv/cli-converter
$ composer install

Available test commands in composer

$ composer phpunit
$ composer test
$ composer testCoverageWithHtml
$ composer testCoverage