Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 603 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 603 Bytes

Fetch RSS/Atom

Recruitment task. CLI app fetching Atom/RSS data into a CSV file

Installation

Run this command in terminal

composer install

Usage

<URL> - Atom/RSS feed URL

<PATH> - Path to CSV file in which we will save RSS feed

php src/console.php csv:simple <URL> <PATH>
php src/console.php csv:extended <URL> <PATH>

Example:

php src/console.php csv:simple http://feeds.nationalgeographic.com/ng/News/News_Main simple_export

Testing

$ vendor/bin/phpunit