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(1mo ago)12941BSD-3-ClausePHP

Since Feb 16Pushed 1mo ago3 watchersCompare

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

READMEChangelog (4)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

45

—

FairBetter than 91% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

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

49d 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

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[silverstripe/userforms

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

1321.1M94](/packages/silverstripe-userforms)[dnadesign/silverstripe-elemental

Elemental pagetype and collection of Elements

1101.1M340](/packages/dnadesign-silverstripe-elemental)[symbiote/silverstripe-advancedworkflow

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

46304.8k9](/packages/symbiote-silverstripe-advancedworkflow)[andreyryabin/sprint.editor

Редактор для контент-менеджеров

506.8k](/packages/andreyryabin-sprinteditor)[phanan/poddle

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

1735.5k9](/packages/phanan-poddle)

PHPackages © 2026

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