PHPackages                             yuzuru-s/parse-rss - 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. yuzuru-s/parse-rss

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

yuzuru-s/parse-rss
==================

This PHP library can easily parse xml files, especially RSS1.0, RSS2.0 and ATOM.

1.0.6(9y ago)1038.7k↓23.5%2MITPHPPHP &gt;=5.5.0

Since Nov 26Pushed 9y ago2 watchersCompare

[ Source](https://github.com/YuzuruS/parse-rss)[ Packagist](https://packagist.org/packages/yuzuru-s/parse-rss)[ Docs](https://github.com/YuzuruS/parse-rss)[ RSS](/packages/yuzuru-s-parse-rss/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

This PHP library can easily parse xml files, especially RSS1.0, RSS2.0 and ATOM.
================================================================================

[](#this-php-library-can-easily-parse-xml-files-especially-rss10-rss20-and-atom)

[![Coverage Status](https://camo.githubusercontent.com/38ab5a6abd356e3123bda1e2ca78cd6a1f52e130a24006c4a64403edf554ca9b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f59757a757275532f70617273652d7273732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/YuzuruS/parse-rss?branch=master)[![Build Status](https://camo.githubusercontent.com/0120db110b55827ee01a745b3cb9c718dc7c1bee99cb97b79db1e66cb3807521/68747470733a2f2f7472617669732d63692e6f72672f59757a757275532f70617273652d7273732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/YuzuruS/parse-rss)[![Stable Version](https://camo.githubusercontent.com/7ccbcce0af6fddaec53a4e8f1c2131d4e0ad7192b164e2c7bbe392c0e1c5438a/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f70617273652d7273732f762f737461626c65)](https://packagist.org/packages/yuzuru-s/parse-rss)[![Download Count](https://camo.githubusercontent.com/42c390879afd0be7a008a367819c044a6f3d22368290e6072bc791d96108c5fb/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f70617273652d7273732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yuzuru-s/parse-rss)[![License](https://camo.githubusercontent.com/103fa3cc1c3d0cfa229c228be4acb95d1d33d65002f905415e38d105cf151863/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f70617273652d7273732f6c6963656e7365)](https://packagist.org/packages/yuzuru-s/parse-rss)

This parser can handle RSS easily without being conscious of the difference of RSS1.0 and RSS2.0 and ATOM. and gets the minimum necessary value.

1. site name
2. site url
3. article title
4. article url
5. article description
6. date that article posted
7. thumbnail of article

This thumbnail is composed by og:img and img tags included description.

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

[](#requirements)

- PHP
    - > =5.5 &gt;=5.6, &gt;=7.0
- ext-xml
- ext-curl
- Composer

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

[](#installation)

- Using composer

```
{
    "require": {
       "yuzuru-s/parse-rss": "1.0.*"
    }
}

```

```
$ php composer.phar update yuzuru-s/parse-rss --dev

```

How to use
----------

[](#how-to-use)

Please check [sample code](https://github.com/YuzuruS/parse-rss/blob/master/sample/usecase.php)

```
