PHPackages                             digit7s/laravel-seo-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. digit7s/laravel-seo-sitemap

ActiveLibrary

digit7s/laravel-seo-sitemap
===========================

Reusable Laravel SEO sitemap abstraction for Laravel applications.

v1.0.0(today)01↑2900%MITPHPPHP ^8.4CI passing

Since Aug 28Pushed todayCompare

[ Source](https://github.com/Digit7s/laravel-seo-sitemap)[ Packagist](https://packagist.org/packages/digit7s/laravel-seo-sitemap)[ Docs](https://github.com/digit7s/laravel-seo-sitemap)[ RSS](/packages/digit7s-laravel-seo-sitemap/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (2)Used By (0)

Laravel SEO Sitemap
===================

[](#laravel-seo-sitemap)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aa2db68b99ea3d25d135cdbb59c1e53eaea29b93dc6b3189b09ba7688fc7e876/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646967697437732f6c61726176656c2d73656f2d736974656d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digit7s/laravel-seo-sitemap)[![Total Downloads](https://camo.githubusercontent.com/804d62f57e52de78d00662eb0dda13d7dea6f1bbd73c59540a5b4e8d5ab37c56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646967697437732f6c61726176656c2d73656f2d736974656d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digit7s/laravel-seo-sitemap)[![PHP Version](https://camo.githubusercontent.com/15e557563627e2f3eb9ebbc8a56d00b3a9d4f6a16e862b3ad18791fe2e6b3a3f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646967697437732f6c61726176656c2d73656f2d736974656d61702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digit7s/laravel-seo-sitemap)[![Tests](https://github.com/digit7s/laravel-seo-sitemap/actions/workflows/tests.yml/badge.svg)](https://github.com/digit7s/laravel-seo-sitemap/actions/workflows/tests.yml)[![License](https://camo.githubusercontent.com/284d4004c96d1b3d1a6c2d9bfbcd1558aacb6152708132cbe518650a2b563db4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646967697437732f6c61726176656c2d73656f2d736974656d61702e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

`digit7s/laravel-seo-sitemap` is a reusable Laravel package for SEO sitemap generation across Laravel applications.

The package uses [`spatie/laravel-sitemap`](https://github.com/spatie/laravel-sitemap) as the underlying sitemap engine and provides an application-focused abstraction layer that can grow without coupling consuming applications to Filament, Inertia, Vue, project-specific Eloquent models, route names, locale models, or database schemas.

Requirements
------------

[](#requirements)

- PHP 8.4 or higher
- Laravel 12 or 13

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

[](#installation)

```
composer require digit7s/laravel-seo-sitemap
```

Publish the configuration when you need to customize the package defaults:

```
php artisan vendor:publish --tag=seo-sitemap-config
```

Quick Start
-----------

[](#quick-start)

1. Implement an application sitemap definition:

```
namespace App\Sitemap;

use Digit7s\SeoSitemap\Contracts\SitemapDefinition;
use Digit7s\SeoSitemap\Sitemap\SitemapBuilder;
use Digit7s\SeoSitemap\Sitemap\SitemapManager;

final class WebsiteSitemap implements SitemapDefinition
{
    public function build(SitemapManager $manager): SitemapBuilder
    {
        return $manager
            ->createBuilder()
            ->addUrl('/')
            ->addUrl('about')
            ->addRoute('contact');
    }
}
```

2. Bind `SitemapDefinition` in your `AppServiceProvider`:

```
use App\Sitemap\WebsiteSitemap;
use Digit7s\SeoSitemap\Contracts\SitemapDefinition;

public function register(): void
{
    $this->app->bind(SitemapDefinition::class, WebsiteSitemap::class);
}
```

3. Generate the sitemap:

```
php artisan sitemap:generate
```

4. (Optional) Schedule generation in `routes/console.php`:

```
use Illuminate\Support\Facades\Schedule;

Schedule::command('sitemap:generate')
    ->daily()
    ->withoutOverlapping();
```

Documentation
-------------

[](#documentation)

- [Introduction](docs/introduction.md)
- [Installation](docs/installation.md)
- [Configuration](docs/configuration.md)
- [Architecture](docs/architecture.md)
- [Testing](docs/testing.md)
- [Sitemap Definition](docs/features/sitemap-definition.md)
- [Sitemap Generation](docs/features/generation.md)
- [Automation &amp; Concurrency](docs/features/automation.md)
- [Large Sitemaps &amp; Splitting](docs/features/large-sitemaps.md)
- [Sitemap Indexes](docs/features/sitemap-indexes.md)
- [Static URLs and Named Routes](docs/features/static-urls.md)
- [Sitemap Sources](docs/features/sitemap-sources.md)
- [Dynamic Content](docs/features/dynamic-content.md)
- [URL Filtering](docs/features/url-filtering.md)
- [Canonical URLs](docs/features/canonical-urls.md)
- [Localization](docs/features/localization.md)
- [hreflang Alternates](docs/features/hreflang.md)
- [Image Sitemaps](docs/features/image-sitemaps.md)
- [Custom Alternate Resolvers](docs/advanced/custom-alternate-resolvers.md)
- [Custom Sources](docs/advanced/custom-sources.md)
- [Public API Reference](docs/public-api.md)
- [Release Guide](docs/releasing.md)

Testing
-------

[](#testing)

```
composer validate --strict
composer test
composer analyse
composer format
```

License
-------

[](#license)

The MIT License. See [LICENSE.md](LICENSE.md).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/235431018?v=4)[Myo Min Oo](/maintainers/myominoo-digit7s)[@myominoo-digit7s](https://github.com/myominoo-digit7s)

---

Top Contributors

[![myominoo-digit7s](https://avatars.githubusercontent.com/u/235431018?v=4)](https://github.com/myominoo-digit7s "myominoo-digit7s (16 commits)")

---

Tags

laravelSitemapseodigit7s

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M721](/packages/spatie-laravel-medialibrary)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[spatie/laravel-health

Monitor the health of a Laravel application

88412.7M191](/packages/spatie-laravel-health)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1614.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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