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.
- Host: GitHub
- URL: https://github.com/inboxly/receiver
- Owner: inboxly
- License: mit
- Created: 2021-06-26T00:15:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T09:50:17.000Z (almost 5 years ago)
- Last Synced: 2025-06-09T11:54:00.481Z (about 1 year ago)
- Topics: feed, rss
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.