2017 © Pedro Peláez
 

library publisher

pubsubhubbub implementation of publisher.

image

pubsubhubbub/publisher

pubsubhubbub implementation of publisher.

  • Tuesday, May 22, 2018
  • by pfefferle
  • Repository
  • 10 Watchers
  • 31 Stars
  • 21,623 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 1 Versions
  • 48 % Grown

The README.md

This PHP library for PubSubHubbub was written by Josh Fraser and is released under the Apache 2.0 License, (*1)

Install

Update your composer require block:, (*2)

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

Usage

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...";
    print_r($p->last_response());
}

The Versions

22/05 2018

dev-master

9999999-dev https://github.com/pubsubhubbub/php-publisher

pubsubhubbub implementation of publisher.

  Sources   Download

Apache-2.0

The Requires

  • php ~5.4 || ~7.0

 

data feeds pubsubhubbub publishers