Skip to main content
Version: Fegg 5.x (next)

RSS::__construct

Load RSS feed

Description​

public RSS::__construct( string $url )

Loads and parses the feed. The entries can then be read with RSS::fetch or RSS::fetchAll.

Arguments​

NameData typeDefaultRemarks
$urlstringRSS Feed URL

Example​

Controller
use Fegg\Tool\RSS;

$rss = new RSS('https://example.com/feed');