yaroslawww/laravel-external-feed-parser
Composer 安装命令:
composer require yaroslawww/laravel-external-feed-parser
包简介
Parse external feed.
README 文档
README
"Template method" package to parse external feed.
Installation
Install the package via composer:
composer require yaroslawww/laravel-external-feed-parser
Optionally you can publish the config file with:
php artisan vendor:publish --provider="ExternalFeedParser\ServiceProvider" --tag="config"
Usage
Add config to config/services.php or config/external-feed-parser.php.
'jobs-feeds' => [ 'foobar' => [ 'pull' => [ 'class' => \ExternalFeedParser\Pull\XmlFeedPull::class, 'options' => [ 'url' => 'https://www.foobar.co.uk/rssfeed/example.aspx', 'listingKey' => 'baz', ], ], 'convert' => [ 'class' => \ExternalFeedParser\Converters\SimpleConverter::class, 'options' => [ 'entityClass' => \ExternalFeedParser\Entity\ExternalEntity::class, ], ], ], ],
FeedParser::provider('foobar') ->parse() ->each(function (ExternalEntity $entity) { $entity->get('baz') });
Credits
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-14