puniserv / cli-converter
PHP CLI converter
1.1.0
2019-07-19 16:42 UTC
Requires
- php: ^7.1
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- guzzlehttp/guzzle: 6.3.3
- symfony/config: 4.2.8
- symfony/console: 4.2.8
- symfony/dependency-injection: 4.2.8
- symfony/process: 4.2.8
Requires (Dev)
- phpunit/phpunit: 7.5.9
- roave/security-advisories: dev-master
This package is not auto-updated.
Last update: 2025-04-29 16:49:33 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