An open API service indexing awesome lists of open source software.

https://github.com/inboxly/receiver

Part of the Inboxly service. Explore sites to find feeds and fetch feeds with last entries.
https://github.com/inboxly/receiver

feed rss

Last synced: 6 months ago
JSON representation

Part of the Inboxly service. Explore sites to find feeds and fetch feeds with last entries.

Awesome Lists containing this project

README

          

# Inboxly Receiver

This package used as part of the Inboxly service.

Explore sites to find feeds and fetch feeds with last entries.

## Install

You can install the package via composer:

```bash
composer require inboxly/receiver
```

## Usage

### Explore site to find feeds

```php
explore($site, 'rss');

/** @var \Inboxly\Receiver\Sources\Rss\RssParameters $parameters */
foreach ($result as $parameters) {
dump("Found feed: $parameters->url");
}
}
}
```

### Fetch feed with entries

```php
fetch($parameters);

/** @var \Inboxly\Receiver\Feed $feed */
foreach ($feeds as $feed) {
dump("Fetched feed: $feed->name");

/** @var \Inboxly\Receiver\Entry $entry */
foreach ($feed->entries as $entry) {
dump("Entry in feed: $entry->name");
}
}
}
}
```

## Testing

Run the tests with:

```bash
composer test
```

## Credits

- [Sento Sango](https://github.com/sentosango)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.