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
| Name | Data type | Default | Remarks |
|---|---|---|---|
| $url | string | RSS Feed URL |
Example
Controller
use Fegg\Tool\RSS;
$rss = new RSS('https://example.com/feed');