Skip to content

krzysobo/rssparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RssParser

License

:package_description

Installation

Download the code and unpack to a directory you want.

Being in the project root, in the command line please execute:

$ composer update

To install your dependencies using composer.

In the src directory, find the file config.yml.dist and copy it as config.yml. Set your to logs in this file, for example /usr/local/var/log/rssparser.log

Example config.yml file (also attached in the repo):

log_path: "/usr/local/var/log/rssparser.log"

Usage

Go to the project root (the level above src and vendor ) To overwrite the target file in a case it already exists:

$ php src/console.php dev:basic {feed_url} {output_file_path} 

To append the data to the target file in a case it already exists:

$ php src/console.php dev:extended {feed_url} {output_file_path} 

Example:

$php src/console.php dev:basic http://feeds.bbci.co.uk/news/rss.xml output.csv -v

Testing

$ phpunit

Credits

License

The MIT License (MIT). Please see License File for more information.

About

RssParser as a test application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages