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

This package is auto-updated.

Last update: 2024-11-13 16:50:37 UTC


README

Feed-Me provides a set of interfaces to talk about streams of content.

Table of Contents

  1. Introduction
  2. Example(s)
  3. References

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

  1. Twitter

References

The model

  1. Include Engagement

The Golden Rule

Try three to use it at least three times!

  1. Feed-Me RSS
  2. Feed-Me Facebook
  3. Feed-Me Twitter