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

Abandoned → [spatie/laravel-sitemap](/?search=spatie%2Flaravel-sitemap)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

sertxudeveloper/laravel-sitemap
===============================

Create programmatically a sitemap for your Laravel website

v1.5.0(3y ago)42071[1 PRs](https://github.com/sertxudeveloper/laravel-sitemap/pulls)MITPHPPHP ^7.4|^8.0

Since Mar 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sertxudeveloper/laravel-sitemap)[ Packagist](https://packagist.org/packages/sertxudeveloper/laravel-sitemap)[ Docs](https://github.com/sertxudeveloper/laravel-sitemap)[ Fund](https://buymeacoffee.com/sertxudeveloper)[ GitHub Sponsors](https://github.com/sertxudev)[ RSS](/packages/sertxudeveloper-laravel-sitemap/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (6)Versions (13)Used By (0)

Warning

This package is no longer actively maintained, feel free to create a fork if you need it.
The project requiring this package has been discontinued.

[![Laravel Sitemap by Sertxu Developer](/art/socialcard.png)](/art/socialcard.png)

Laravel Sitemap
===============

[](#laravel-sitemap)

[![](https://camo.githubusercontent.com/63b73d08a3907620542733a298d1b7d9b495236feefcc7a61aee7a14bb0272b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/63b73d08a3907620542733a298d1b7d9b495236feefcc7a61aee7a14bb0272b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170) [![](https://camo.githubusercontent.com/d1433e44439913c95870408a4c21fc7b6d6ad7f288981195ba13db1d51090e0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/d1433e44439913c95870408a4c21fc7b6d6ad7f288981195ba13db1d51090e0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170) [![](https://camo.githubusercontent.com/715352d7f32bb244a2d117a848b7d38b55003afcdf74a18e2e658ba7c8746511/68747470733a2f2f696d672e736869656c64732e696f2f6c6962726172696573696f2f6769746875622f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/715352d7f32bb244a2d117a848b7d38b55003afcdf74a18e2e658ba7c8746511/68747470733a2f2f696d672e736869656c64732e696f2f6c6962726172696573696f2f6769746875622f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170) [![](https://camo.githubusercontent.com/e8aaa02ad93ae3a798ecda3c3c20b7dbc879ad3613bbac5735286c945f9b26dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/e8aaa02ad93ae3a798ecda3c3c20b7dbc879ad3613bbac5735286c945f9b26dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170) [![](https://camo.githubusercontent.com/9fc8ebaea43d0033f3846b3006155f6c94a718f8040da037c1aabe27fbe48768/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/9fc8ebaea43d0033f3846b3006155f6c94a718f8040da037c1aabe27fbe48768/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170) [![](https://camo.githubusercontent.com/222623f427e5616bce4f2578642c64b7923ac24d3548c566eb2bec8e4847ff4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/222623f427e5616bce4f2578642c64b7923ac24d3548c566eb2bec8e4847ff4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170) [![](https://camo.githubusercontent.com/bb2c4d9fef9e4ab8ae3f3d79a6e9f3cd909622bf73fd8d504674ede743411d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/bb2c4d9fef9e4ab8ae3f3d79a6e9f3cd909622bf73fd8d504674ede743411d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736572747875646576656c6f7065722f6c61726176656c2d736974656d6170)

Generate a sitemap of your Laravel app.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Laravel &gt;= 8.x

Installation
------------

[](#installation)

You can install this package using Composer.

```
composer require sertxudeveloper/laravel-sitemap
```

Generate the sitemap
====================

[](#generate-the-sitemap)

First you need to initialize the sitemap.

```
$sitemap = Sitemap::create();
```

Add Routes
----------

[](#add-routes)

Next you should add the routes to the sitemap.

```
$sitemap->add(Url::create(route("main.index")));
```

Save the sitemap
----------------

[](#save-the-sitemap)

After adding all the routes you want in the sitemap, you should save it in a file.

```
$sitemap->writeToFile(public_path('sitemap.xml'))
```

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/sertxudeveloper/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Sergio Peris](https://github.com/sertxudev)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Copyright © 2022 Sertxu Developer

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~112 days

Recently: every ~281 days

Total

11

Last Release

1120d ago

Major Versions

0.1.1 → 1.0.02020-03-17

PHP version history (3 changes)0.0.0PHP ^7.2

1.3.0PHP ^7.2|^8.0

1.4.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b211c262b3cf89b6f1e2f2eb42d571fa15d3e8415025899f902ad1645d0c4cef?d=identicon)[sertxudev](/maintainers/sertxudev)

---

Top Contributors

[![sertxudev](https://avatars.githubusercontent.com/u/22801379?v=4)](https://github.com/sertxudev "sertxudev (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

hacktoberfestlaravellaravel-sitemapsertxudevelopersitemapsitemap-generatorsitemap-phpsitemap-xmllaravellaravel-sitemapSitemap

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[fomvasss/laravel-meta-tags

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

3028.9k](/packages/fomvasss-laravel-meta-tags)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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