norikt / feedseek

PHP的一个简单的自动发现feed链接的工具/库

0.0.1 2014-10-21 09:10 UTC

This package is not auto-updated.

Last update: 2024-09-24 02:32:04 UTC


README

PHP的一个简单的feed链接自动发现工具

Build Status

需求

  • php>=5.4

安装

通过composer

$ composer require norikt/feedseek dev-master

使用方法

示例

<?php

Feedseek::find('http://www.example.com/');
// ['http://www.example.com/rss', 'http://www.example.com/atom']

Feedseek::find(['http://www.example.com/','http://www.example2.com/']);
// ['http://www.example.com/' => [...],	'http://www.example2.com/' => [...],]

如果您将第二个参数设置为true,则只返回通过W3C Feedvalidation的链接。

<?php

Feedseek::find('http://www.example.com/', true)

许可证

MIT