A simple feed link Auto-discovering tool for PHP
- php>=5.4
via composer
$ composer require norikt/feedseek dev-master
example:
<?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/' => [...],]
If you set to true second argument and returns the only link that has passed through the Feedvalidation of W3C.
<?php
Feedseek::find('http://www.example.com/', true)
MIT