pubsubhubbub / subscriber
pubsubhubbub implementation of subscriber.
Installs: 87 926
Dependents: 0
Suggesters: 0
Security: 0
Stars: 33
Watchers: 6
Forks: 18
Open Issues: 2
Requires
- php: ~5.4 || ~7.0 || ~8.0
This package is auto-updated.
Last update: 2024-11-20 00:19:52 UTC
README
This PHP library implements a subscriber for PubSubHubbub.
It was written by Josh Fraser and is released under the Apache 2.0 License
Install
Update your composer
require block:
"require": { "pubsubhubbub/subscriber": "*" }
Usage
use \Pubsubhubbub\Subscriber\Subscriber; $hub_url = "http://pubsubhubbub.appspot.com"; $callback_url = "put your own endpoint here"; // create a new subscriber $s = new Subscriber($hub_url, $callback_url); $feed = "http://feeds.feedburner.com/onlineaspect"; // subscribe to a feed $s->subscribe($feed); // unsubscribe from a feed $s->unsubscribe($feed);