PHPackages                             tomaj/feed-downloader - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. tomaj/feed-downloader

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tomaj/feed-downloader
=====================

Simple feed downloader.

1.0.0(11y ago)018MITPHPPHP &gt;=5.3.3CI failing

Since Sep 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tomaj/feed-downloader)[ Packagist](https://packagist.org/packages/tomaj/feed-downloader)[ RSS](/packages/tomaj-feed-downloader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (2)Used By (0)

Feed downloader
===============

[](#feed-downloader)

[![Build Status](https://camo.githubusercontent.com/f0c6d84df178136202d320877c9e9b79e913123dcdcf7cc20477bb299892a1eb/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746f6d616a2f666565642d646f776e6c6f616465722e706e67)](http://travis-ci.org/tomaj/feed-downloader)[![Code Climate](https://camo.githubusercontent.com/a2ab19b1dedf90900645f48edcef100d26450e9fe5e86808a2748fd019b016dd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f746f6d616a2f666565642d646f776e6c6f616465722f6261646765732f6770612e737667)](https://codeclimate.com/github/tomaj/feed-downloader)[![Test Coverage](https://camo.githubusercontent.com/70368c93c60070ed6482f7f0b5c38b2e7857be181d40521a08f8b72bfcc4f0b2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f746f6d616a2f666565642d646f776e6c6f616465722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/tomaj/feed-downloader/coverage)

[![Latest Stable Version](https://camo.githubusercontent.com/0120ac62da8dbefcd558bd4f1fee093e4e237f53069bcacd3390ef052ea27cc7/68747470733a2f2f706f7365722e707567782e6f72672f746f6d616a2f666565642d646f776e6c6f616465722f762f737461626c652e737667)](https://packagist.org/packages/tomaj/feed-downloader)[![Latest Unstable Version](https://camo.githubusercontent.com/3f17a63215ddb4aea2b4f1ced347b0dd4ed9b0c08b284dd768af349a2aa32187/68747470733a2f2f706f7365722e707567782e6f72672f746f6d616a2f666565642d646f776e6c6f616465722f762f756e737461626c652e737667)](https://packagist.org/packages/tomaj/feed-downloader)[![License](https://camo.githubusercontent.com/5ace9b6942d39073c2f0c263039a6e3866ce99f13aeb5d4524431c9d47fb1ec9/68747470733a2f2f706f7365722e707567782e6f72672f746f6d616a2f666565642d646f776e6c6f616465722f6c6963656e73652e737667)](https://packagist.org/packages/tomaj/feed-downloader)

Simple library for downloading various feed.

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

[](#requirements)

Feed downloader requires PHP 5.3.0 or higher.

Instalation
-----------

[](#instalation)

The best way to install *feed-downloader* is using [Composer](http://getcomposer.org/):

```
$ composer require tomaj/feed-downloader
```

Usage
-----

[](#usage)

You can use feed-downloader to download rss and process data with your function

```
$downloader = new \Tomaj\FeedDownloader\Downloader\CurlDownloader();
$processor = new \Tomaj\FeedDownloader\Processor($downloader);
$url = 'http://somerssfeed.xml';
$result = $processor->processFeed($url, new \Tomaj\FeedDownloader\Parser\RssParser(), function(\Tomaj\FeedDownloader\FeedItem $item) {
	// custom handling $item
	echo $item->getTitle() . "\n";
	echo $item->getLink() . "\n";
	echo $item->getDescription() . "\n";
	echo $item->getGuid() . "\n";
	echo $item->getPubDate() . "\n";
});
if ($result === \Tomaj\FeedDownloader\Processor::PARSE_ERROR) {
	// error in xml
} elseif ($result === \Tomaj\FeedDownloader\Processor::DOWNLOAD_ERROR) {
	// error with downloading
}
```

Todo
----

[](#todo)

- Encodings conversions
- DateTime in FeedItem
- Unify url/link with one getter
- Change ungly parser with multiple ifset() methods
- CurlDownloader test

---

Repository .

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

4268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/875f8397233f01d81479a45bf6a64ca995f04d8ee9e72118f2ffcf129c502f12?d=identicon)[tomaj](/maintainers/tomaj)

---

Top Contributors

[![tomaj](https://avatars.githubusercontent.com/u/446736?v=4)](https://github.com/tomaj "tomaj (28 commits)")

---

Tags

jsoncurlfeedrssdownload

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tomaj-feed-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/tomaj-feed-downloader/health.svg)](https://phpackages.com/packages/tomaj-feed-downloader)
```

###  Alternatives

[tcdent/php-restclient

A generic REST API client for PHP

3542.9M29](/packages/tcdent-php-restclient)[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59300.2k11](/packages/vinelab-http)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69114.3k](/packages/serpapi-google-search-results-php)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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