Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A PubSubHubbub publisher module for PHP.

License

NotificationsYou must be signed in to change notification settings

pubsubhubbub/php-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Install

Update yourcomposer require block:

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

Usage

usepubsubhubbub\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 =newPublisher($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 urlsif ($p->publish_update($topic_url)) {   echo"$topic_url was successfully published to$hub_url";}else {   echo"Ooops...";   print_r($p->last_response());}

About

A PubSubHubbub publisher module for PHP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp