2017 © Pedro Peláez
 

library parser-rss-atom

Parser RSS/Atom

image

prusmarcin/parser-rss-atom

Parser RSS/Atom

  • Monday, April 9, 2018
  • by prusmarcin
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Package ParserRssAtom

Total Downloads Latest Stable Version License, (*1)

Installation

Add the prusmarcin/parserRssAtom package to your composer.json file., (*2)

``` json { "require": { "prusmarcin/parser-rss-atom": "0.*" } }, (*3)


Or via the command line in the root of your application installation. ``` bash $ composer require "prusmarcin/parser-rss-atom:0.*"

Usage

``` php use MarcinPrus\Parser\ParserClass as Parser; use MarcinPrus\Save\SaveFileClass as Save;, (*4)

if (isset($argc) && isset($argv)) { $parser = new Parser(); $parser->requestMethod = 'curl'; $parser->run(); $parser->parseCliParameters($argc, $argv);, (*5)

$save = new Save();
$save->fileType = $parser->fileType;
$response = $save->toFile(
    $parser->path, $parser->saveOption, $parser->parseContent()
);

} else {}, (*6)



Commands ------- Use onlny by CLI: Windows CMD, Unix Shell ``` bash $ php src/console.php csv:simple http://feeds.nationalgeographic.com/ng/News/News_Main eksport_prosty.csv

OR, (*7)

``` bash $ php src/console.php csv:extended http://feeds.nationalgeographic.com/ng/News/News_Main eksport_prosty.csv, (*8)

Result array

``` php
Array
(
    [0] => Array
        (
            [info] => 1
            [message] => Success - The file export_prosty.csv was saved in the root directory of the application.
        )

)

Information

A csv file is written to the disk. The columns are separated by a Tab., (*9)

Testing

bash $ phpunit, (*10)

Contributing

Please see CONTRIBUTING for details., (*11)

Credits

License

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

The Versions

09/04 2018

dev-master

9999999-dev https://github.com/prusmarcin/parser-rss-atom

Parser RSS/Atom

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

parser

04/04 2018

v0.1

0.1.0.0 https://github.com/prusmarcin/parserRssAtom

Parser RSS/Atom

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

parser