# \Suin\RSSWriter
`\Suin\RSSWriter` is yet another simple RSS writer library for PHP 5.3 or later. This component is Licensed under MIT license.
The build status of the current master branch is tracked by Travis CI: [](http://travis-ci.org/suin/php-rss-writer)
Implementation:
```php
title("Channel Title")
->description("Channel Description")
->url('http://blog.example.com')
->appendTo($feed);
$item = new Item();
$item
->title("Blog Entry Title")
->description("
Blog body
")
->url('http://blog.example.com/2012/08/21/blog-entry/')
->appendTo($channel);
echo $feed;
```
Output:
```xml
Channel Title
http://blog.example.com
Channel DescriptionBlog Entry Title
http://blog.example.com/2012/08/21/blog-entry/
<div>Blog body</div>
```
## Installation
You can install via Composer.
At first create `composer.json` file:
```json
{
"require": {
"suin/php-rss-writer": ">=1.0"
}
}
```
Run composer to install.
```
$ composer install
```
Finally, include `vendor/autoload.php` in your product.
```
require_once 'vendor/autoload.php';
```
## How to Use
`example.php` is an example usage of RSSWriter.
If you want to know APIs, please see `FeedInterface`, `ChannelInterface` and `ItemInterface`.
## License
MIT license