承接 indieweb/push 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

indieweb/push

Composer 安装命令:

composer require indieweb/push

包简介

A set of classes for dealing with Pubsubhubbub feeds

README 文档

README

A composer-enabled package containing various PHP classes for using Pubsubhubbub.

Current contents:

  • Josh Fraser's PHP PuSH publishing client

Installation

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

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

     {
     	"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.

  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.

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

<?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

统计信息

  • 总下载量: 6.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 11
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2012-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固