Skip to content

Commit

Permalink
Merge pull request #10 from buffcode/master
Browse files Browse the repository at this point in the history
Cleaned code, updated TravisCI configuration, directory renaming, updated README
  • Loading branch information
suin committed Aug 21, 2015
2 parents d8a9d8e + a5cc959 commit 96ff595
Show file tree
Hide file tree
Showing 32 changed files with 1,211 additions and 1,257 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sudo: false
language: php
php:
- 5.3
Expand All @@ -7,8 +8,12 @@ php:
- hhvm

before_script:
- cd Tests
- wget http://getcomposer.org/composer.phar
- php composer.phar install
- cd tests
- composer install -n

script: ./phpunit --coverage-text --configuration phpunit.xml.dist
script: phpunit --coverage-text --configuration phpunit.xml.dist

cache:
directories:
- tests/vendor
- $HOME/.composer/cache
28 changes: 16 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,14 @@ Output:

## Installation

You can install via Composer.
### Easy installation
You can install directly via [Composer](https://getcomposer.org/):
```bash
$ composer require suin/php-rss-writer
```

At first create `composer.json` file:
### Manual installation
Add the following code to your `composer.json` file:

```json
{
Expand All @@ -73,24 +78,23 @@ At first create `composer.json` file:
}
```

Run composer to install.

```
...and run composer to install it:
```bash
$ composer install
```

Finally, include `vendor/autoload.php` in your product.

```
Finally, include `vendor/autoload.php` in your product:
```php
<?php
require_once 'vendor/autoload.php';
```

## How to Use
## How to use

`example.php` is an example usage of RSSWriter.
The [`examples`](examples) directory contains usage examples for RSSWriter.

If you want to know APIs, please see `FeedInterface`, `ChannelInterface` and `ItemInterface`.
If you want to know APIs, please see [`FeedInterface`](src/Suin/RSSWriter/FeedInterface.php), [`ChannelInterface`](src/Suin/RSSWriter/ChannelInterface.php) and [`ItemInterface`](src/Suin/RSSWriter/ItemInterface.php).

## License

MIT license
MIT license
189 changes: 0 additions & 189 deletions Source/Suin/RSSWriter/Channel.php

This file was deleted.

91 changes: 0 additions & 91 deletions Source/Suin/RSSWriter/ChannelInterface.php

This file was deleted.

Loading

0 comments on commit 96ff595

Please sign in to comment.