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

2.0(1y ago)12561BSD-3-ClausePHP

Since Feb 16Pushed 1y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)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

30

—

LowBetter than 64% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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 ~852 days

Total

2

Last Release

693d ago

Major Versions

1.0 → 2.02024-06-17

### 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

[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

1721.4k1](/packages/phanan-poddle)[phptek/jsontext

JSON storage, querying and modification.

2222.2k2](/packages/phptek-jsontext)

PHPackages © 2026

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