8fold/php-sitemap
最新稳定版本:2.0.0
Composer 安装命令:
composer require 8fold/php-sitemap
包简介
A library for generating Sitemaps (XML)
README 文档
README
Generates valid XML document and sitemap elements based on the Sitemap protocol.
| Schema | Version |
|---|---|
| 0.9 | Latest |
Installation
composer require 8fold/php-sitemap
Usage
You have received the required metadata in an array; could be the results of a database query.
use Eigthfold\Sitemap\Sitemap; $sitemap = Sitemap::create('http://yourdomain.com'); $items = // your array of items foreach ($items as $item) { $sitemap = $sitemap->addUrl( $item->path ); } (string) $sitemap;
Details
Designed to fit within a loop.
Other
{links or descriptions or license, versioning, and governance}
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-04