PHPackages                             toastnz/xmlfeed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. toastnz/xmlfeed

ActiveSilverstripe-vendormodule[Parsing &amp; Serialization](/categories/parsing)

toastnz/xmlfeed
===============

Silverstripe simple XML feed module

3.0.1(4d ago)12831BSD-3-ClausePHP

Since Feb 16Pushed 2y ago3 watchersCompare

[ Source](https://github.com/toastnz/xmlfeed)[ Packagist](https://packagist.org/packages/toastnz/xmlfeed)[ RSS](/packages/toastnz-xmlfeed/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (6)Versions (6)Used By (0)

SilverStripe XML Feed helper
============================

[](#silverstripe-xml-feed-helper)

Helper functions to retrieve external XML feed, cache and render into templates.

Requirements
------------

[](#requirements)

- silverstripe/cms ^4.3.x
- silverstripe/framework ^4.3.x

Installation
------------

[](#installation)

```
composer require toastnz/xmlfeed
```

Configuration
-------------

[](#configuration)

Configure the default Cache Lifetime or default feed URL:

```
Toast\XMLFeed\Feed:
  CacheLifetime: 3600
  URL: "https://external.feed.url/feed.xml"
```

Usage
-----

[](#usage)

```
use Toast\XMLFeed;

$feed = Feed::get($url = null, $xmlPath = null, $cacheLifetime = 300, $asArray = false, $flushCache = false);
```

By default an ArrayList will be returned, which can be rendered directly into a template.

Note: you must check the raw contents of the XML feed to identify fields names.

Example
-------

[](#example)

XML:

```

      Sed in viverra dui. Nullam vel congue massa.
      Ut id nisi vitae massa consectetur dictum quis sed sapien. At euismod turpis

      Aliquam dictum finibus magna
      Cras mattis non elit sit amet vulputate. Nunc at metus sed sapien eros.

```

PHP:

```
use Toast\XMLFeed;

...

class PageController extends ContentController
{
  public function getNewsFeed()
  {
    return Feed::get('https://newswebsite.url/news-feed.xml', 'RSS.Items');
  }
}
```

Template:

```

  $Headline.XML
  $Summary.XML

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance55

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~531 days

Total

4

Last Release

4d ago

Major Versions

1.0 → 2.02024-06-17

2.0 → 3.02026-06-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49888163?v=4)[Leandro Palmieri](/maintainers/leandro-toastnz)[@leandro-toastnz](https://github.com/leandro-toastnz)

---

Top Contributors

[![beetpix](https://avatars.githubusercontent.com/u/66008824?v=4)](https://github.com/beetpix "beetpix (4 commits)")[![webdough](https://avatars.githubusercontent.com/u/5546430?v=4)](https://github.com/webdough "webdough (4 commits)")[![priscillay-toast](https://avatars.githubusercontent.com/u/92568971?v=4)](https://github.com/priscillay-toast "priscillay-toast (1 commits)")

---

Tags

xmlfeedsilverstripe

### Embed Badge

![Health badge](/badges/toastnz-xmlfeed/health.svg)

```
[![Health](https://phpackages.com/badges/toastnz-xmlfeed/health.svg)](https://phpackages.com/packages/toastnz-xmlfeed)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[torann/podcastfeed

Generate RSS feeds for podcasts in Laravel 5.

485.9k](/packages/torann-podcastfeed)[phanan/poddle

Parse podcast feeds with PHP following PSP-1 Podcast RSS Standard

1732.7k8](/packages/phanan-poddle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
