xlient/xml-sitemap
最新稳定版本:v1.0.1
Composer 安装命令:
composer require xlient/xml-sitemap
包简介
An XML sitemap iterator that lets you traverse all urls in a sitemap.
关键字:
README 文档
README
An XML sitemap iterator that lets you traverse all urls in a sitemap written in PHP using XmlReader. Supports sitemap indexes and url sets.
Example
$sitemapIterator = new \Xlient\Xml\Sitemap\SitemapIterator(); $sitemapIterator->open( __DIR__ . '/sitemap.xml', [ // Skip over urls that have not been modified since this date. 'modified_date_time' => null, // DateTime|string // Skip over urls that have a priority lower than this value. 'minimum_priority' => null, // float // Specify the encoding of the sitemap. 'encoding' => null, // String ] ); foreach ($sitemapIterator as $url => $data) { ... } $sitemapIterator->close();
统计信息
- 总下载量: 522
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unlicense
- 更新时间: 2022-09-23