woeler/eso-news-fetcher

A library to fetch news from ESO related websites.

v4.3.0 2022-10-21 19:57 UTC

This package is auto-updated.

Last update: 2024-04-21 23:30:11 UTC


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();
}