Documentation

RssFeed
in package

Table of Contents

Methods

parse()  : array<string|int, mixed>
Download and parse a RSS feed

Methods

parse()

Download and parse a RSS feed

public static parse(string $url) : array<string|int, mixed>

Supports a subset of RSS 2.0 and also a subset of MRSS (Media RSS) 2.0

News items are returned as arrays, with the following keys name Title text Short desc of the news post. Plain text date DateTime object url Link URL image Optional image URL

Parameters
$url : string

Feed to load and parse

Return values
array<string|int, mixed> —

News items

On this page

Search results