kwaadpepper/sitemap-refresh

Create sitemap.xml
1,709
Install
composer require kwaadpepper/sitemap-refresh
Latest Version:2.3.2
PHP:^8.3
License:MIT
Last Updated:Mar 29, 2026
Links: GitHub  ·  Packagist
Maintainer: Kwaadpepper

Refresh Sitemap

Latest Version on Packagist Total Downloads CI

Creates sitemap.xml and refresh using a config file

Installation

Via Composer

composer require kwaadpepper/sitemap-refresh
npm i puppeteer # Pour exec en JS

Usage

  1. php artisan vendor:publish --tag=sitemap-refresh

  2. Change configuration in config/sitemap-refresh.php

  3. You can test your configuration using php artisan sitemap:refresh --dry-run

  4. If you wish to complete the sitemap (like if random models are displayed) run php artisan sitemap:install, then add urls in app/lib/CompleteSitemapWith

URL generation notes

  • Sitemap entries are normalized before being stored, so equivalent URLs like https://example.com and https://example.com/ are exported only once.
  • Default ports are removed during normalization and hosts are canonicalized to lowercase.
  • Query strings are still ignored by the package unless you explicitly index them yourself.
  • During sitemap generation, app.url is temporarily forced into Laravel's URL generator. This ensures URLs produced from route(), url() or custom completeWith callbacks stay on the same canonical domain as the crawler.

Change log

Please see the changelog for more information on what has changed recently.

License

MIT. Please see the license file for more information.

Related Packages

vinicius73/seotools

A package containing SEO helpers.

5,222 23
calotype/seo

A package containing SEO helpers.

2,642 73
cviebrock/laravel-news-sitemap

A simple Google News Sitemap generator for Laravel.

4,910 5
michal-koval/laravel-seo

A ultimate Laravel SEO Package

462 2
pomirleanu/sitemap

A simple sitemap generator for Laravel.

154 0