PHPackages                             bootpress/sitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. bootpress/sitemap

ActiveLibrary[Search &amp; Filtering](/categories/search)

bootpress/sitemap
=================

A sitemap generator that saves all of your links, tracks any updates, and makes the entire site searchable.

v1.1(1y ago)01.0k↓88.9%1MITPHPPHP &gt;=5.4

Since Sep 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Kylob/Sitemap)[ Packagist](https://packagist.org/packages/bootpress/sitemap)[ Docs](https://www.bootpress.org/components/sitemap.html)[ RSS](/packages/bootpress-sitemap/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (1)

use BootPress\\Sitemap\\Component as Sitemap;
=============================================

[](#use-bootpresssitemapcomponent-as-sitemap)

[![Packagist](https://camo.githubusercontent.com/1aca6014ee9d28e856316f4f6c6a260aa50a50558750fb62094e71174e1687d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6f7470726573732f736974656d61702e7376673f7374796c653d666c61742d737175617265266c6162656c3d5061636b6167697374)](https://packagist.org/packages/bootpress/sitemap)[![License MIT](https://camo.githubusercontent.com/a7e65aee57b11d28e4caff8b945729a66be0bb663f7f93bd24c5aa65699f148e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![HHVM Tested](https://camo.githubusercontent.com/3422fab0fbdb2e50d74ced25d6df3e7e1be8b373f48c708a785f247a503409d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4848564d2d5465737465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Sitemap)[![PHP 7 Supported](https://camo.githubusercontent.com/7dae9186d16bac6b5d5cee34d3bec4400516657b575bc1c784125d70a6871126/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230372d537570706f727465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Sitemap)[![Build Status](https://camo.githubusercontent.com/0d01cf48105ef682a5b15fa78c1874021cb46ff07d11ddb9420066da40a52a37/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b796c6f622f536974656d61702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Sitemap)[![Code Climate](https://camo.githubusercontent.com/241f5c15d9dd2a5778fc0a045e3d60a5b8025dd77e6690a4ed9969ca4d573e6d/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f4b796c6f622f536974656d61702e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/Sitemap)[![Test Coverage](https://camo.githubusercontent.com/72d801f6ae99d85d0eebc2a1132a805cb43760a84da83144394dbf41f2a3dddc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f4b796c6f622f536974656d61702e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/Sitemap/coverage)

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
------------

[](#installation)

Add the following to your `composer.json` file.

```
{
    "require": {
        "bootpress/sitemap": "^1.0"
    }
}
```

Example Usage
-------------

[](#example-usage)

```
