ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13
499,494 36
Install
composer require ultrono/laravel-sitemap
Latest Version:10.0.0
PHP:^8.2
License:MIT
Last Updated:Mar 19, 2026
Links: GitHub  ·  Packagist
Maintainer: ultrono

Packagist Version run-tests PHP ^8.2

Laravel Sitemap

This is a Laravel 11, 12 and 13 only fork of Laravelium/laravel-sitemap. The original repository has been abandoned.

The package supports actively supported Laravel releases as per the official Laravel Support Policy.

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

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

and more in the Wiki.

Related Packages

lutomski/laravel-sitemap

Laravelium Sitemap package for Laravel (9, 10, 11 and 12).

111,577 2
hippomundo/sitemap

A maintained fork of the Laravelium Sitemap package for Laravel.

6,171 0
rumenx/php-sitemap

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

37,230 1,341
juzaweb/sitemap

Laravelium Sitemap package for Laravel.

632,890 0
victorbuild/sitemap

sitemap package for Laravel10 and PHP8

4,199 2