webignition/website-rss-feed-finder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

webignition/website-rss-feed-finder

Composer 安装命令:

composer require webignition/website-rss-feed-finder

包简介

Find the RSS feed from a given website base URL

关键字:

README 文档

README

Overview

Finds the RSS or ATOM feed URL for a given website. That's all.

Usage

The "Hello World" example

<?php
$finder = new webignition\WebsiteRssFeedFinder\WebsiteRssFeedFinder();        

$finder->setRootUrl('http://codinghorror.com/blog/');
$this->assertEquals('http://feeds.feedburner.com/codinghorror/', $finder->getRssFeedUrl());

$finder->setRootUrl('http://www.geekyportal.com/');        
$this->assertEquals('http://www.geekyportal.com/feeds/posts/default', $finder->getAtomFeedUrl());        
);

Building

Using as a library in a project

If used as a dependency by another project, update that project's composer.json and update your dependencies.

"require": {
    "webignition/website-rss-feed-finder": "*"      
}

Developing

This project has external dependencies managed with composer. Get and install this first.

# Make a suitable project directory
mkdir ~/website-rss-feed-finder && cd ~/website-rss-feed-finder

# Clone repository
git clone git@github.com:webignition/website-rss-feed-finder.git.

# Retrieve/update dependencies
composer.phar install

Testing

Have look at the project on travis for the latest build status, or give the tests a go yourself.

cd ~/website-rss-feed-finder
phpunit

An instance of WebsiteRssFeedFinder can be passed an HTTP client with which to retrieve the content of the specified sitemap URL.

Examine the existing unit tests to see how you can pass in a mock HTTP client to enable testing without the need to perform actual HTTP requests.

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固