New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13
528,837 36
Install
composer require ultrono/laravel-sitemap
Latest Version:10.0.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:4 – 10
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

r94ever/sitemap

Sitemap package for Laravel.

18,036 0
victorbuild/sitemap

sitemap package for Laravel10 and PHP8

4,259 2
rubium/laravel-sitemap

Rubium Sitemap package for Laravel.

2,298 0
juzaweb/sitemap

Laravelium Sitemap package for Laravel.

633,277 0

Version History

Version Released PHP Laravel License
10.0.0 ^8.2 ^11.0|^12.0|^13.0 MIT
9.5.0 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
9.4.0 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
9.3.0 ^8.0 ^8.0 || ^9.0 || ^10.0 MIT
9.2.0 ^8.0 ^8.0 || ^9.0 || ^10.0 MIT