PHPackages                             ultrono/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ultrono/laravel-sitemap

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ultrono/laravel-sitemap
=======================

Sitemap generator for Laravel 11, 12 and 13

10.0.0(2mo ago)36412.6k↓12.6%44MITPHPPHP ^8.2CI passing

Since Nov 27Pushed 2mo agoCompare

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

READMEChangelog (9)Dependencies (8)Versions (43)Used By (4)

[![Packagist Version](https://camo.githubusercontent.com/2d41df7031778f86f525d5c230732b0b85d5f905430f005c79c511aa94e063d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756c74726f6e6f2f6c61726176656c2d736974656d61703f6c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246756c74726f6e6f2532466c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/2d41df7031778f86f525d5c230732b0b85d5f905430f005c79c511aa94e063d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756c74726f6e6f2f6c61726176656c2d736974656d61703f6c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246756c74726f6e6f2532466c61726176656c2d736974656d6170)[![run-tests](https://github.com/ultrono/laravel-sitemap/actions/workflows/run-tests.yml/badge.svg)](https://github.com/ultrono/laravel-sitemap/actions/workflows/run-tests.yml)![PHP ^8.2](https://camo.githubusercontent.com/a9a5a6f7a3cde18410606faa02c6f57e99277cc835745cbf922135e31b74d1a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d677265656e)

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

[](#laravel-sitemap)

This is a Laravel 11, 12 and 13 only fork of [Laravelium/laravel-sitemap](https://github.com/Laravelium/laravel-sitemap). The original repository has been abandoned.

The package supports actively supported Laravel releases as per the official [Laravel Support Policy](https://laravel.com/docs/master/releases#support-policy).

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

[](#installation)

If `laravelium/sitemap` is already part of the project:

```
composer remove laravelium/sitemap
```

Then run:

```
composer require ultrono/laravel-sitemap
```

```
php artisan vendor:publish --provider="Ultrono\Sitemap\SitemapServiceProvider"
```

Generate a simple sitemap
-------------------------

[](#generate-a-simple-sitemap)

```
Route::get('mysitemap', function() {
    $sitemap = resolve("sitemap");

    $sitemap->add(URL::to(), '2012-08-25T20:10:00+02:00', '1.0', 'daily');
    $sitemap->add(URL::to('page'), '2012-08-26T12:30:00+02:00', '0.9', 'monthly');

    $posts = DB::table('posts')->orderBy('created_at', 'desc')->get();

    foreach ($posts as $post) {
        $sitemap->add($post->slug, $post->modified, $post->priority, $post->freq);
    }

    // generate (format, filename)
    // sitemap.xml is stored within the public folder
    $sitemap->store('xml', 'sitemap');
});
```

Examples
--------

[](#examples)

- [How to generate dynamic sitemap (with optional caching)](https://web.archive.org/web/20201130155031/https://github.com/Laravelium/laravel-sitemap/wiki/Dynamic-sitemap)
- [How to generate BIG sitemaps (with more than 1M items)](https://web.archive.org/web/20201130155031/https://github.com/Laravelium/laravel-sitemap/wiki/Sitemap-index)
- [How to generate sitemap to a file](https://web.archive.org/web/20201130155030/https://github.com/Laravelium/laravel-sitemap/wiki/Generate-sitemap)
- [How to use multiple sitemaps with sitemap index](https://web.archive.org/web/20201130155030/https://github.com/Laravelium/laravel-sitemap/wiki/Generate-BIG-sitemaps)

and more in the [Wiki](https://web.archive.org/web/20201130155038/https://github.com/Laravelium/laravel-sitemap/wiki).

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance88

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor6

6 contributors hold 50%+ of commits

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 ~125 days

Recently: every ~284 days

Total

34

Last Release

60d ago

Major Versions

v3.1.1 → v6.0.12019-09-03

v6.0.1 → v7.0.12020-03-21

v7.0.1 → 8.0.12020-09-10

8.0.1 → 9.0.02022-03-10

9.5.0 → 10.0.02026-03-19

PHP version history (9 changes)v2.4.11PHP &gt;=5.3.0

v2.4.15PHP &gt;=5.4.0

v2.5.5PHP &gt;=5.5.9

v2.7.2PHP &gt;=7.0.0

v2.8.1PHP &gt;=7.1.3

v6.0.1PHP &gt;=7.2

8.0.1PHP &gt;=7.3

9.0.0PHP ^8.0

10.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![ultrono](https://avatars.githubusercontent.com/u/1782734?v=4)](https://github.com/ultrono "ultrono (6 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (6 commits)")[![kiaking](https://avatars.githubusercontent.com/u/3753672?v=4)](https://github.com/kiaking "kiaking (5 commits)")[![Casinelli](https://avatars.githubusercontent.com/u/3205510?v=4)](https://github.com/Casinelli "Casinelli (5 commits)")[![fjborquez](https://avatars.githubusercontent.com/u/39710634?v=4)](https://github.com/fjborquez "fjborquez (4 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![CaraWang](https://avatars.githubusercontent.com/u/4214689?v=4)](https://github.com/CaraWang "CaraWang (2 commits)")[![jaric](https://avatars.githubusercontent.com/u/86606?v=4)](https://github.com/jaric "jaric (2 commits)")[![sarokse](https://avatars.githubusercontent.com/u/109381?v=4)](https://github.com/sarokse "sarokse (2 commits)")[![atthakorn](https://avatars.githubusercontent.com/u/463654?v=4)](https://github.com/atthakorn "atthakorn (2 commits)")[![hpakdaman](https://avatars.githubusercontent.com/u/9606809?v=4)](https://github.com/hpakdaman "hpakdaman (1 commits)")[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (1 commits)")[![sebdesign](https://avatars.githubusercontent.com/u/667144?v=4)](https://github.com/sebdesign "sebdesign (1 commits)")[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (1 commits)")[![dontbug](https://avatars.githubusercontent.com/u/8143119?v=4)](https://github.com/dontbug "dontbug (1 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![mabasic](https://avatars.githubusercontent.com/u/1839930?v=4)](https://github.com/mabasic "mabasic (1 commits)")[![maciekfreak](https://avatars.githubusercontent.com/u/6990935?v=4)](https://github.com/maciekfreak "maciekfreak (1 commits)")[![MalikinSergey](https://avatars.githubusercontent.com/u/8463996?v=4)](https://github.com/MalikinSergey "MalikinSergey (1 commits)")[![Manc](https://avatars.githubusercontent.com/u/811578?v=4)](https://github.com/Manc "Manc (1 commits)")

---

Tags

phplaravelxmlgeneratorhtmlSitemapgoogle-news

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rumenx/php-sitemap

Framework-agnostic Sitemap generator for PHP, Laravel, and Symfony.

1.3k15.1k1](/packages/rumenx-php-sitemap)

PHPackages © 2026

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