PHPackages                             jgniecki/sitemap-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jgniecki/sitemap-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

jgniecki/sitemap-bundle
=======================

v1.1.0(9mo ago)01.3kMITPHPPHP &gt;=8.1

Since Jul 13Pushed 9mo agoCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

SitemapBundle
=============

[](#sitemapbundle)

SitemapBundle provides a simple way to generate XML sitemaps for Symfony applications using PHP attributes.

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

[](#installation)

```
composer require jgniecki/sitemap-bundle
```

After the bundle is installed, run the install command to copy the default configuration and route setup into your project:

```
php bin/console sitemap:install
```

This command will create the following files if they do not already exist:

- `config/packages/sitemap.yaml` – default bundle configuration with group definitions.
- `config/routes/sitemap.yaml` – imports the sitemap route loader.

Usage
-----

[](#usage)

Annotate your controllers or actions with the `#[Sitemap]` attribute to include routes in the sitemap:

```
use jgniecki\SitemapBundle\Sitemap\Attribute\Sitemap;
use jgniecki\SitemapBundle\Sitemap\Enum\ChangeFreqEnum;
use Symfony\Component\Routing\Attribute\Route;

#[Sitemap(priority: 1.0, changefreq: ChangeFreqEnum::DAILY)]
#[Route('/', name: 'homepage')]
public function index(): Response
{
    // ...
}
```

### Configure hosts and groups

[](#configure-hosts-and-groups)

You can define sitemap groups per host in `config/packages/sitemap.yaml`. A default configuration is generated by the install command:

```
sitemap:
    default_priority: null
    default_changefreq: null
    hosts:
        default:
            path: '/sitemap.xml'
            groups:
                default:
                    path: null
                    lastmod: null
#        main:
#            path: '/sitemap.xml'
#            host: 'example.(com|pl)'
#            groups:
#                default:
#                    path: '/sitemap-general.xml'
#                blog:
#                    path: '/sitemap-blog.xml'
```

Each host can override the path for the sitemap index and the path and last modification date for its sitemap groups. When a host defines only the default group, the `sitemap.hosts..groups.default.path` setting is ignored and a warning is triggered; use `sitemap.hosts..path` instead.

### Accessing the sitemap

[](#accessing-the-sitemap)

The bundle registers routes for your sitemaps automatically. Visit the path defined in `sitemap.hosts..path` (default `/sitemap.xml`) to see the sitemap index when multiple groups are configured. The default group's sitemap for a host is available under the path defined in `sitemap.hosts..groups.default.path`.

License
-------

[](#license)

This bundle is released under the MIT license.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance56

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Every ~26 days

Total

3

Last Release

293d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c5ff1caa1095245f5cd5bc03e93f74db10210c2283e2f15dfcb3e8cbd654391?d=identicon)[bubanga](/maintainers/bubanga)

---

Top Contributors

[![jgniecki](https://avatars.githubusercontent.com/u/19625445?v=4)](https://github.com/jgniecki "jgniecki (33 commits)")

### Embed Badge

![Health badge](/badges/jgniecki-sitemap-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)[metamodels/core

MetaModels core

9956.1k68](/packages/metamodels-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

1682.8k1](/packages/symfony-ux-toolkit)

PHPackages © 2026

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