1. Go to this page and download the library: Download prusmarcin/parser-rss-atom library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
prusmarcin / parser-rss-atom example snippets
php
use MarcinPrus\Parser\ParserClass as Parser;
use MarcinPrus\Save\SaveFileClass as Save;
if (isset($argc) && isset($argv)) {
$parser = new Parser();
$parser->requestMethod = 'curl';
$parser->run();
$parser->parseCliParameters($argc, $argv);
$save = new Save();
$save->fileType = $parser->fileType;
$response = $save->toFile(
$parser->path, $parser->saveOption, $parser->parseContent()
);
} else {}