# spatie/laravel-sitemap

Create and generate sitemaps with ease

Repository: https://github.com/spatie/laravel-sitemap
Canonical: https://ross.abutalabs.com/products/laravel-sitemap
Homepage: https://spatie.be/docs/laravel-sitemap
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, sitemap, google, seo, xml
Last push: 2026-08-07T11:21:37+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 90, longevity 100
- inputs: {"age_days": 3673, "days_push": 26, "days_rel": 70, "gap_med": 28.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2617, forks 297 (observed 2026-08-28T04:07:04.694622+00:00)

## What it is
A Laravel package by Spatie that generates XML sitemaps, either by crawling an entire site automatically or by adding URLs manually (including Eloquent models via a Sitemapable interface). It supports splitting crawled URLs into multiple sitemap files and optionally executing JavaScript via headless Chrome.

## Use cases
- generate a sitemap for my laravel site
- crawl my website and build an xml sitemap automatically
- add eloquent models to a sitemap
- split sitemap into multiple files for search console
- generate sitemap including javascript-rendered links
- create sitemap manually with custom urls and lastmod dates

## When to choose
- you run a Laravel or PHP web application and need SEO sitemaps
- you want automatic sitemap generation by crawling without listing URLs manually
- you need sitemap index files or per-section sitemap splitting
- you want to map Eloquent models directly to sitemap tags

## When to avoid
- your project is not PHP/Laravel-based
- you need a general-purpose web crawler rather than sitemap generation
- you need to generate other formats like RSS or news sitemaps not supported by the package

## Facets
- artifact type: library
- maturity: stable
- function: web-scraping, developer-tools, workflow-automation
- domain: web-development, crawlers, backend
- platform: php, cli
- tags: laravel, sitemap, seo, xml-sitemap, site-crawler, spatie, web-server

## Member repositories
- spatie/laravel-sitemap (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:04.694622+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:20:24.682903+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-sitemap (fetched 2026-08-28T04:07:04.694622+00:00, sha 48d6e78d24a9)
  - homepage: https://spatie.be/docs/laravel-sitemap (fetched 2026-08-29T10:03:27.979148+00:00, sha 521ac82876ed)
  - site_page: https://spatie.be/docs (fetched 2026-08-29T10:03:27.982049+00:00, sha 08e024d86d95)
  - site_page: https://spatie.be/about-us (fetched 2026-08-29T10:03:27.984254+00:00, sha d3cb88e4b34c)
  - site_page: https://spatie.be/docs/laravel-sitemap/v8 (fetched 2026-08-29T10:03:27.986962+00:00, sha 5c55aa0e52ce)
  - site_page: https://spatie.be/docs/laravel-sitemap/v8/installation-setup (fetched 2026-08-29T10:03:27.989040+00:00, sha b4bfb475f3e0)
  - site_page: https://spatie.be/docs/laravel-sitemap/v8/support-us (fetched 2026-08-29T10:03:27.990926+00:00, sha a478cda7b312)
  - site_page: https://spatie.be/docs/laravel-sitemap/v8/changelog (fetched 2026-08-29T10:03:27.992802+00:00, sha e084fa9db9b7)
  - site_page: https://spatie.be/docs/laravel-sitemap/v8/questions-issues (fetched 2026-08-29T10:03:27.994844+00:00, sha 3722a075a720)
  - site_page: https://spatie.be/docs/laravel-sitemap/v8/about-us (fetched 2026-08-29T10:03:27.997043+00:00, sha 09d0887ef40c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
