bootpress/sitemap
Composer 安装命令:
composer require bootpress/sitemap
包简介
A sitemap generator that saves all of your links, tracks any updates, and makes the entire site searchable.
关键字:
README 文档
README
The BootPress Sitemap Component generates the sitemap[...].xml files by saving all of your website's links, and keeping track of any updates. Any 404 pages are removed as they come to our attention (via $page->send(404)). It also has convenience methods for adding or removing multiple pages at once, and searching the entire site or any parts thereof. The only heads up is to watch what you Sitemap::add() to the database. Listing or product pages that have constantly changing or updated content are not good candidates for the sitemap. It will screw up your searches, and you only want Google to index real content pages anyways.
Installation
Add the following to your composer.json file.
{
"require": {
"bootpress/sitemap": "^1.0"
}
}
Example Usage
<?php use BootPress\Page\Component as Page; use BootPress\Sitemap\Component as Sitemap; $page = Page::html(); if ($xml = Sitemap::page()) { $page->send($xml); } $html = '<p>Content</p>'; Sitemap::add('pages', $html); $page->send($page->display($html));
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-28