faycal1 / php-subscriber

A PubSubHubbub subscriber module for PHP

Home Page:https://packagist.org/packages/pubsubhubbub/subscriber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

A PubSubHubbub subscriber module for PHP

https://packagist.org/packages/pubsubhubbub/subscriber

License:Apache License 2.0


Languages

Language:PHP 100.0%