用于获取RSS订阅的包
1.0.0
2021-06-22 20:11 UTC
Requires
- php: ^8.0
- beberlei/assert: ^3.3
- illuminate/contracts: ^8.37
- simplepie/simplepie: ^1.5
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is not auto-updated.
Last update: 2024-09-26 09:40:29 UTC
README
关于
本包提供了一种从网站获取RSS订阅的简单方法。
要求
PHP 8.0
安装
您可以通过composer安装此包
composer require avfigueredo/feedvel
您可以使用以下命令发布配置文件
php artisan vendor:publish --provider="Avfigueredo\Feedvel\FeedvelServiceProvider" --tag="feedvel-config"
这是发布配置文件的内容
return [ //Specifies the date format. 'date_format' => 'd/m/Y H:i:s' ];
命令
您可以通过以下命令并传递URL作为参数来检查网站是否有订阅。
php artisan feedvel:feed https://www.theminimalists.com/feed/
+------+-----------------+-------+ | Feed | Title | Posts | +------+-----------------+-------+ | OK | The Minimalists | 10 | +------+-----------------+-------+
用法
use Avfigueredo\Feedvel\Feedvel; $feed = Feedvel::from('https://www.theminimalists.com/feed/'); $feed->successful(); // bool $feed->error(); // returns the message error. // Content $feed->title(); // returns the title. $feed->author(); // returns the author. $feed->authors(); // returns the authors. $feed->posts(); // returns the posts. $feed->original(); // returns the original simple pie object.
测试
composer test
变更日志
有关最近更改的更多信息,请参阅CHANGELOG
贡献
有关详细信息,请参阅CONTRIBUTING
安全漏洞
有关如何报告安全漏洞,请查看我们的安全策略
鸣谢
许可协议
MIT许可协议(MIT)。有关更多信息,请参阅许可文件