kwaadpepper/sitemap-refresh

Create sitemap.xml

Maintainers

Package info

github.com/Kwaadpepper/sitemap-refresh

pkg:composer/kwaadpepper/sitemap-refresh

Statistics

Installs: 1 427

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.3.2 2026-03-29 09:08 UTC

This package is auto-updated.

Last update: 2026-03-29 09:08:43 UTC


README

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.