PHPackages                             tahsingokalp/laravel-sitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tahsingokalp/laravel-sitemap

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

tahsingokalp/laravel-sitemap
============================

Sitemap generator for Laravel

V12.0.0(1y ago)1455MITPHPPHP ^8.0

Since Mar 22Pushed 1y agoCompare

[ Source](https://github.com/TahsinGokalp/laravel-sitemap)[ Packagist](https://packagist.org/packages/tahsingokalp/laravel-sitemap)[ RSS](/packages/tahsingokalp-laravel-sitemap/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (15)Versions (6)Used By (0)

[![Packagist Version](https://camo.githubusercontent.com/b52fd086e5c256e32379a46dd85af335dbf06ad5cb255d93f5ac5684dd7625a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616873696e676f6b616c702f6c61726176656c2d736974656d6170)](https://camo.githubusercontent.com/b52fd086e5c256e32379a46dd85af335dbf06ad5cb255d93f5ac5684dd7625a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616873696e676f6b616c702f6c61726176656c2d736974656d6170)[![run-tests](https://github.com/tahsingokalp/laravel-sitemap/actions/workflows/run-tests.yml/badge.svg)](https://github.com/tahsingokalp/laravel-sitemap/actions/workflows/run-tests.yml)![PHP ^8.0](https://camo.githubusercontent.com/07495c38015b39660f23f0645afebe9b7cf7c5dec1668f5874afbb7dbda38526/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e302d677265656e)

Laravel Sitemap
===============

[](#laravel-sitemap)

This is a Laravel 8, 9 and 10 only fork of [Laravelium/laravel-sitemap](https://github.com/Laravelium/laravel-sitemap). The original repository has been abandoned.

PHP `^8.0` is required.

Installation
------------

[](#installation)

If `laravelium/sitemap` is already part of the project:

```
composer remove laravelium/sitemap
```

Then run:

```
composer require tahsingokalp/laravel-sitemap
```

```
php artisan vendor:publish --provider="TahsinGokalp\Sitemap\SitemapServiceProvider"
```

Generate a simple sitemap
-------------------------

[](#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
--------

[](#examples)

- [How to generate dynamic sitemap (with optional caching)](https://web.archive.org/web/20201130155031/https://github.com/Laravelium/laravel-sitemap/wiki/Dynamic-sitemap)
- [How to generate BIG sitemaps (with more than 1M items)](https://web.archive.org/web/20201130155031/https://github.com/Laravelium/laravel-sitemap/wiki/Sitemap-index)
- [How to generate sitemap to a file](https://web.archive.org/web/20201130155030/https://github.com/Laravelium/laravel-sitemap/wiki/Generate-sitemap)
- [How to use multiple sitemaps with sitemap index](https://web.archive.org/web/20201130155030/https://github.com/Laravelium/laravel-sitemap/wiki/Generate-BIG-sitemaps)

and more in the [Wiki](https://web.archive.org/web/20201130155038/https://github.com/Laravelium/laravel-sitemap/wiki).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance42

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor5

5 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~121 days

Total

4

Last Release

463d ago

Major Versions

v11.0.2 → V12.0.02025-03-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/e01e66846694aaed77b15e804804a25a7b0b497e60d3745e36944f3ea2e9495a?d=identicon)[TahsinGokalp](/maintainers/TahsinGokalp)

---

Top Contributors

[![TahsinGokalp](https://avatars.githubusercontent.com/u/3122047?v=4)](https://github.com/TahsinGokalp "TahsinGokalp (10 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (6 commits)")[![kiaking](https://avatars.githubusercontent.com/u/3753672?v=4)](https://github.com/kiaking "kiaking (5 commits)")[![Casinelli](https://avatars.githubusercontent.com/u/3205510?v=4)](https://github.com/Casinelli "Casinelli (5 commits)")[![fjborquez](https://avatars.githubusercontent.com/u/39710634?v=4)](https://github.com/fjborquez "fjborquez (4 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![CaraWang](https://avatars.githubusercontent.com/u/4214689?v=4)](https://github.com/CaraWang "CaraWang (2 commits)")[![sarokse](https://avatars.githubusercontent.com/u/109381?v=4)](https://github.com/sarokse "sarokse (2 commits)")[![atthakorn](https://avatars.githubusercontent.com/u/463654?v=4)](https://github.com/atthakorn "atthakorn (2 commits)")[![jaric](https://avatars.githubusercontent.com/u/86606?v=4)](https://github.com/jaric "jaric (2 commits)")[![MalikinSergey](https://avatars.githubusercontent.com/u/8463996?v=4)](https://github.com/MalikinSergey "MalikinSergey (1 commits)")[![Manc](https://avatars.githubusercontent.com/u/811578?v=4)](https://github.com/Manc "Manc (1 commits)")[![marcorivm](https://avatars.githubusercontent.com/u/1222598?v=4)](https://github.com/marcorivm "marcorivm (1 commits)")[![marvinschroeder](https://avatars.githubusercontent.com/u/955978?v=4)](https://github.com/marvinschroeder "marvinschroeder (1 commits)")[![mauserrifle](https://avatars.githubusercontent.com/u/1580250?v=4)](https://github.com/mauserrifle "mauserrifle (1 commits)")[![mnking](https://avatars.githubusercontent.com/u/8109982?v=4)](https://github.com/mnking "mnking (1 commits)")[![mwsanders0](https://avatars.githubusercontent.com/u/1329593?v=4)](https://github.com/mwsanders0 "mwsanders0 (1 commits)")[![sebdesign](https://avatars.githubusercontent.com/u/667144?v=4)](https://github.com/sebdesign "sebdesign (1 commits)")[![seltix5](https://avatars.githubusercontent.com/u/11258096?v=4)](https://github.com/seltix5 "seltix5 (1 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")

---

Tags

phplaravelxmlgeneratorhtmlSitemapgoogle-news

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tahsingokalp-laravel-sitemap/health.svg)

```
[![Health](https://phpackages.com/badges/tahsingokalp-laravel-sitemap/health.svg)](https://phpackages.com/packages/tahsingokalp-laravel-sitemap)
```

###  Alternatives

[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36447.3k12](/packages/ultrono-laravel-sitemap)[rumenx/php-sitemap

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

1.3k23.1k1](/packages/rumenx-php-sitemap)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
