PHPackages                             wizclumsy/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wizclumsy/sitemap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wizclumsy/sitemap
=================

Sitemap generator for Laravel projects

0.3.2(9y ago)015MITPHP

Since Mar 23Pushed 9y agoCompare

[ Source](https://github.com/WizInteractive/clumsy-sitemap)[ Packagist](https://packagist.org/packages/wizclumsy/sitemap)[ RSS](/packages/wizclumsy-sitemap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (10)Used By (0)

Clumsy Sitemap
==============

[](#clumsy-sitemap)

Simple sitemaps for Laravel projects

[![Latest Stable Version](https://camo.githubusercontent.com/3a79bc44f771bc555378bb0667298186771a8b4e9519bb72ad973ea6ca60c741/68747470733a2f2f706f7365722e707567782e6f72672f636c756d73792f736974656d61702f76657273696f6e)](https://packagist.org/packages/clumsy/sitemap) [![Latest Unstable Version](https://camo.githubusercontent.com/3cbd815fabeb093c1747167d11ff082eed89c30ff65274d1ce0ff3c3e6097dc7/68747470733a2f2f706f7365722e707567782e6f72672f636c756d73792f736974656d61702f762f756e737461626c65)](//packagist.org/packages/clumsy/sitemap) [![Codacy Badge](https://camo.githubusercontent.com/e9418475a87a5ae590634fbde9d08c9d7d251e974d4f9775ab962b4af844ba9f/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3335616166666136306234323462656461623064646137643832356361343365)](https://www.codacy.com/app/tbuteler/clumsy-sitemap?utm_source=github.com&utm_medium=referral&utm_content=tbuteler/clumsy-sitemap&utm_campaign=Badge_Grade) [![SensioLabsInsight](https://camo.githubusercontent.com/206edb12caa3669bcb01f3070723e2f131f9d6e99d27828354044253247ac3dd/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63373732326435632d333765372d343930622d383863382d6263303466643737343334652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/c7722d5c-37e7-490b-88c8-bc04fd77434e)

Installing
----------

[](#installing)

Use Composer to install:

```
composer require clumsy/sitemap

```

In the `config/app.php` file, add this to the `providers` key:

```
Wizclumsy\Sitemap\SitemapServiceProvider::class,
```

Usage
-----

[](#usage)

The package automatically creates a route to resolve . If there are no URLs to insert on your `sitemap.xml` or an error occurs while parsing them, a `404` error will be thrown on that route.

In order to add URLs to your sitemap, add a `sitemap.php` file inside the `routes` folder of your Laravel app. Inside, return an array with the desired URLs. For example:

```
