PHPackages                             escuccim/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. escuccim/sitemap

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

escuccim/sitemap
================

a sitemap generator and admin for laravel

v0.1(9y ago)063MITPHPPHP ~5.6|~7.0

Since Jan 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/escuccim/Sitemap)[ Packagist](https://packagist.org/packages/escuccim/sitemap)[ Docs](https://github.com/escuccim/sitemap)[ RSS](/packages/escuccim-sitemap/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Sitemap
=======

[](#sitemap)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5dc61c55f559ee4137e028cbaefc65f3b4b73239ef81592d68595d976d188522/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657363756363696d2f536974656d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/escuccim/Sitemap)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7ea154350d0cc008768c9c45063f09ef3f848f74f4ae12b002f16944b87dd2de/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f657363756363696d2f536974656d61702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/escuccim/Sitemap)[![Total Downloads](https://camo.githubusercontent.com/1e3adcd53c7da3a633f0320b9d5a07e93c998f8a045435483e9a5f6122a463c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657363756363696d2f536974656d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/escuccim/Sitemap)

A package to generate and maintain Google-compliant XML sitemaps for Laravel. Includes admin panel to add static pages, images, subdomains for translations and to generate sitemaps accordingly. Can easily be extended to add your own sitemaps for things like blogs, etc.

Install
-------

[](#install)

Via Composer -

```
$ composer require escuccim/Sitemap
```

Register the class in config/app.php:

```
Escuccim\Sitemap\sitemapServiceProvider::class,

```

Run the migrations:

```
php artisan migrate
```

The migration seeds the database with subdomain of 'www' which is set to be the default. If you wish to use other subdomains you can do so from the admin page, and can assign them to correspond with hreflang tags in the sitemap.

This package uses a middleware to determine if the user is authorized to access the sitemap admin. This extends the Laravel Auth package and adds a field to the users table called 'type' which is 1 if the user is an admin, and 0 otherwise. You need to add the middleware to app\\Http\\Kernel.php:

```
'admin' => \Escuccim\Sitemap\Middleware\AdminMiddleware::class,

```

If you wish you can publish the views and config file to your app using:

```
php artisan vendor:publish

```

There are two groups of files that can be published - config publishes the migrations and config file, views publishes the views. To only publish one of these groups add --tag=config or --tag=views.

Usage
-----

[](#usage)

This package contains its own routes, controllers, models and views and migrations so should work out of the box. The admin will be located at /sitemapadmin and the sitemap for static pages as controlled by the admin will be at /sitemap/pages.

I just added a sitemap index which is at /sitemap and is controlled by /sitemapadmin. The sitemap index takes a URI for other sitemaps you may have, as well as a 'table'. 'table' references a database table and will pull the latest updated\_at date from that table to use as the lastmod date for that sitemap. If you do not specify a table it will default to the first day of the current month to use as the lastmod date.

You should use the sitemap index to list any additional sitemaps you want included in the index. The pages sitemap is always listed.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Eric Scuccimarra](https://github.com/escuccim)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

3

Last Release

3336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61c86e5402e74e21b6f9d8906ffb20058090b94443dc3469593f5d7df57ec3b8?d=identicon)[skooch](/maintainers/skooch)

---

Top Contributors

[![escuccim](https://avatars.githubusercontent.com/u/22889788?v=4)](https://github.com/escuccim "escuccim (71 commits)")

---

Tags

Sitemapescuccim

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/escuccim-sitemap/health.svg)

```
[![Health](https://phpackages.com/badges/escuccim-sitemap/health.svg)](https://phpackages.com/packages/escuccim-sitemap)
```

###  Alternatives

[samdark/sitemap

Sitemap and sitemap index builder

5381.4M32](/packages/samdark-sitemap)[fomvasss/laravel-meta-tags

A package to manage SEO (meta-tags, xml-fields, etc.)

3028.7k](/packages/fomvasss-laravel-meta-tags)[fof/sitemap

Generate a sitemap

1984.6k2](/packages/fof-sitemap)[kphoen/sitemap-bundle

Provides a way to create/generate a sitemap using Doctrine, etc.

2444.8k](/packages/kphoen-sitemap-bundle)[mitydigital/sitemapamic

An XML sitemap generator for Statamic that includes all collections and related taxonomy pages.

1481.5k](/packages/mitydigital-sitemapamic)[kunstmaan/sitemap-bundle

A sitemap bundle to generate a sitemap for your Kunstmaan bundles website based on its Nodes

10109.1k1](/packages/kunstmaan-sitemap-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
