woeler / eso-news-fetcher
A library to fetch news from ESO related websites.
Installs: 9 968
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/woeler/eso-news-fetcher
Requires
- php: ^8.0
- ext-dom: *
- ext-json: *
- ext-libxml: *
- guzzlehttp/guzzle: ^7.0.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^9
README
A PHP library that fetches news about The Elder Scrolls Online in an OOP way.
Installation
composer require woeler/eso-news-fetcher
Usage
Getting official news
$f = new \Woeler\EsoNewsFetcher\Fetcher\NewsFetcher();
foreach ($f->fetchAll(true) as $article) {
echo $article->getTitle();
echo $article->getImage();
echo $article->getDescription();
}
Getting live patch notes
$f = new \Woeler\EsoNewsFetcher\Fetcher\LivePatchNotesFetcher();
foreach ($f->fetchAll(true) as $article) {
echo $article->getTitle();
echo $article->getImage();
echo $article->getDescription();
}
Getting pts patch notes
$f = new \Woeler\EsoNewsFetcher\Fetcher\PtsPatchNotesFetcher();
foreach ($f->fetchAll(true) as $article) {
echo $article->getTitle();
echo $article->getImage();
echo $article->getDescription();
}