PHPackages                             m-adamski/symfony-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. m-adamski/symfony-sitemap-bundle

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

m-adamski/symfony-sitemap-bundle
================================

Sitemap Bundle for Symfony

1.0.1(5y ago)0346MITPHPPHP ^7.2

Since Jan 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/m-adamski/symfony-sitemap-bundle)[ Packagist](https://packagist.org/packages/m-adamski/symfony-sitemap-bundle)[ RSS](/packages/m-adamski-symfony-sitemap-bundle/feed)WikiDiscussions main Synced 3w ago

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

Sitemap Bundle for Symfony
==========================

[](#sitemap-bundle-for-symfony)

Bundle which creates a dynamic sitemap in XML format.

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

[](#installation)

This bundle can be installed by Composer:

```
composer require m-adamski/symfony-sitemap-bundle
```

How to use it?
--------------

[](#how-to-use-it)

Bundle provides the Sitemap Controller, and a configured routes file that you just need to import into your local configuration. You can do that by adding sitemap section into `config/routes.yaml` file:

```
sitemap:
    resource: '@SitemapBundle/Resources/config/routes.yaml'
```

The next step is to mark the routes to be added to the sitemap file. The bundle supports several configurations:

```
index:
    path: /
    methods: [ GET ]
    controller: App\Controller\DefaultController::index
    defaults:
        _sitemap: 1.00
```

```
index:
    path: /
    methods: [ GET ]
    controller: App\Controller\DefaultController::index
    defaults:
        _sitemap: true
```

```
index:
    path: /
    methods: [ GET ]
    controller: App\Controller\DefaultController::index
    defaults:
        _sitemap:
            priority: 1.00
            change_frequency: 'monthly'
            last_modification: '2021-01-01 12:00:00'
```

What about dynamically generated routes? Sometimes the URLs we want to include in the sitemap are dynamically generated with one or more parameters. In this case, it is possible to use the `generator` parameter:

```
city:
    path: /city/{cityName}
    methods: [ GET ]
    controller: App\Controller\DefaultController::city
    defaults:
        _sitemap:
            generator: App\Model\SitemapGenerator::generateCity
```

```

        http://localhost/city/New%20York

        http://localhost/city/Oslo

        http://localhost/city/Warsaw

```

Bundle also supports the internationalized routing:

```
home:
    path:
        pl: /pl
        en: /en
    methods: [ GET ]
    controller: App\Controller\DefaultController::staticPage
    defaults:
        _sitemap: true
```

Generated Sitemap XML:

```

        http://localhost/pl

        http://localhost/en

```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Every ~164 days

Total

2

Last Release

1840d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99031579203ae7aff3a32b3309374cb5703c35abc4737509bc6b228b433d9943?d=identicon)[m-adamski](/maintainers/m-adamski)

---

Top Contributors

[![m-adamski](https://avatars.githubusercontent.com/u/21038303?v=4)](https://github.com/m-adamski "m-adamski (8 commits)")

---

Tags

phpsitemap-bundlesymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/m-adamski-symfony-sitemap-bundle/health.svg)

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

32642.2k23](/packages/symfony-ai-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k13](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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