alexecus/sitemaper
Composer 安装命令:
composer require alexecus/sitemaper
包简介
Sitemaper is a library to generate flexible sitemaps
README 文档
README
Sitemaper is a very flexible PHP sitemap generator library that you can use to generate sitemap files. It can generate into various format such as XML. It can also output the sitemap as raw data so you can bind it to a controller for example.
View complete documentation on the official website
use Alexecus\Sitemaper\Sitemap; $sitemap = new Sitemap('http://mysite.com'); $sitemap ->addItem('/', [ 'lastmod' => '2020-05-15', 'changefreq' => 'monthly', 'priority' => '1.0', ]) ->addItem('/page', [ 'lastmod' => '2020-05-15', 'changefreq' => 'daily', 'priority' => '0.8', ]); $sitemap->write('sitemap.xml');
Installation
Install via Composer
$ composer require alexecus/sitemaper
What can Sitemaper do
- Generate XML files
- Output sitemap XML response from your controller
- Generate sitemap index files
Why choose Sitemaper
- Probably the most flexible, you can even change the transformers and writers
- Support for Google sitemap extensions
- Support for sitemap index files
- 100% test code coverage
- Fluent usage
- Fully documented
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-28
