Skip to content

MR4online/php-subscriber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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      = "https://pubsubhubbub.appspot.com";
$callback_url = "put your own endpoint here";

// create a new subscriber
$s = new Subscriber($hub_url, $callback_url);

$feed = "https://feeds.feedburner.com/onlineaspect";

// subscribe to a feed
$s->subscribe($feed);

// unsubscribe from a feed
$s->unsubscribe($feed);

About

A PubSubHubbub subscriber module for PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%