samlitowitz / feed-me
Feed-Me provides a set of interfaces to talk about streams of content.
v0.0.4
2022-08-25 15:06 UTC
Requires
- samlitowitz/streamable: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-13 17:02:02 UTC
README
Feed-Me provides a set of interfaces to talk about streams of content.
Table of Contents
Introduction
Two interfaces drive the description of content.
First we have the Content
interface which describes discrete content as a collection of media.
interface Content { public function getMedia(): FeedMe\Media\Collection; public function setMedia(FeedMe\Media\Collection $collection): void; }
Second we have the Media
interface which describes discrete media as a stream of bytes.
interface Media { public function getData(): Streamable\Stream; }
Examples
References
The model
- Include
Engagement
The Golden Rule
Try three to use it at least three times!
- Feed-Me RSS
- Feed-Me Facebook
- Feed-Me Twitter