A PubSubHubbub publisher module for PHP.
Branch: master
Clone or download
pfefferle Merge pull request #10 from adduc/patch-2
Add websub as a keyword
Latest commit 047b0fa Oct 9, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Update publisher_example.php Oct 19, 2015
library Follow PSR-2 & other conventions Nov 15, 2016
.styleci.yml Follow PSR-2 & other conventions Nov 15, 2016
LICENSE Add LICENSE May 18, 2015
README.md Update README.md May 22, 2018
composer.json Add websub as a keyword Oct 9, 2018


This PHP library for PubSubHubbub was written by Josh Fraser and is released under the Apache 2.0 License


Update your composer require block:

"require": { "pubsubhubbub/publisher": "*" }


use pubsubhubbub\publisher\Publisher;

// specify which hub you want to use. In this case we'll use the demo hub on app engine.
$hub_url = "http://pubsubhubbub.appspot.com/";

// create a new pubsubhubbub publisher
$p = new Publisher($hub_url);

// specify the feed that has been updated
$topic_url = "http://www.onlineaspect.com";

// notify the hub that the specified topic_url (ATOM feed) has been updated
// alternatively, publish_update() also accepts an array of topic urls
if ($p->publish_update($topic_url)) {
    echo "$topic_url was successfully published to $hub_url";
} else {
    echo "Ooops...";