PHP code example of woeler / eso-news-fetcher
1. Go to this page and download the library: Download woeler/eso-news-fetcher 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/ */
woeler / eso-news-fetcher example snippets
$f = new \Woeler\EsoNewsFetcher\Fetcher\NewsFetcher();
foreach ($f->fetchAll(true) as $article) {
echo $article->getTitle();
echo $article->getImage();
echo $article->getDescription();
}
$f = new \Woeler\EsoNewsFetcher\Fetcher\LivePatchNotesFetcher();
foreach ($f->fetchAll(true) as $article) {
echo $article->getTitle();
echo $article->getImage();
echo $article->getDescription();
}
$f = new \Woeler\EsoNewsFetcher\Fetcher\PtsPatchNotesFetcher();
foreach ($f->fetchAll(true) as $article) {
echo $article->getTitle();
echo $article->getImage();
echo $article->getDescription();
}