2017 © Pedro Peláez
 

library push

A set of classes for dealing with Pubsubhubbub feeds

image

indieweb/push

A set of classes for dealing with Pubsubhubbub feeds

  • Wednesday, August 29, 2012
  • by barnabywalters
  • Repository
  • 15 Watchers
  • 7 Stars
  • 1,615 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

push

A composer-enabled package containing various PHP classes for using Pubsubhubbub., (*1)

Current contents:, (*2)

  • Josh Fraser's PHP PuSH publishing client

Installation

Install using Composer. If you don't already have composer, download it per their instructions. Then:, (*3)

  1. Add indieweb/push to your project's composer.json file, so it looks a bit like this:, (*4)

    {
        "require" : {
            "indieweb/push": "*"
        },
        "minimum-stability": "dev"
    }

    If you've never used composer, this is just specifying that your project needs the indieweb/push package in order to work, it doesn't matter which version you get, and it's all right to use packages which are in development., (*5)

  2. Run php composer.phar update
  3. Provided there were no errors, you should now have indieweb/push installed

Usage

indieweb/push supports psr-0 autoloading, so using the classes is easy provided you're familiar with PHP namespaces., (*6)

Say you want to use the PuSH publisher (class for pinging hubs to let them know of updates):, (*7)

<?php
// This script pings a hub

use indieweb\PuSH\Publisher;

$p = new Publisher('http://pubsubhubbub.appspot.com/publish');

$p -> publish_update('http://domain.tld/path/to/your/feed.atom');

// EOF

TODO: Add more usage examples and documentation as more classes are added, (*8)

The Versions

29/08 2012

dev-master

9999999-dev

A set of classes for dealing with Pubsubhubbub feeds

  Sources   Download

feed push indieweb publish pubsubhubbub ostatus

29/08 2012

v0.1.0

0.1.0.0

A set of classes for dealing with Pubsubhubbub feeds

  Sources   Download

feed push indieweb publish pubsubhubbub ostatus