PHPackages                             presta/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. presta/sitemap-bundle

ActiveSymfony-bundle[Parsing &amp; Serialization](/categories/parsing)

presta/sitemap-bundle
=====================

A Symfony bundle that provides tools to build your application sitemap.

v4.3.0(5mo ago)3929.4M—10%103[10 issues](https://github.com/prestaconcept/PrestaSitemapBundle/issues)[2 PRs](https://github.com/prestaconcept/PrestaSitemapBundle/pulls)20MITPHPPHP &gt;=8.0CI passing

Since Nov 28Pushed 3mo ago24 watchersCompare

[ Source](https://github.com/prestaconcept/PrestaSitemapBundle)[ Packagist](https://packagist.org/packages/presta/sitemap-bundle)[ RSS](/packages/presta-sitemap-bundle/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (71)Used By (20)

PrestaSitemapBundle
===================

[](#prestasitemapbundle)

[![Tests](https://camo.githubusercontent.com/2cbb0adcc66971c7f2b415a49af4dbfb43e74f6930e88d394f63b30bfb8cc406/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f707265737461636f6e636570742f507265737461536974656d617042756e646c652f74657374732e796d6c3f6272616e63683d342e78267374796c653d666c61742d737175617265266c6162656c3d7465737473)](https://github.com/prestaconcept/PrestaSitemapBundle/actions?query=branch%3A4.x++)[![Coverage](https://camo.githubusercontent.com/2a4ea0d8dd15512ea89316b3666088bf703002eac534f0efaace1cc55c7a895b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f707265737461636f6e636570742f507265737461536974656d617042756e646c653f7374796c653d666c61742d737175617265)](https://codecov.io/gh/prestaconcept/PrestaSitemapBundle)[![Latest Stable Version](https://camo.githubusercontent.com/ea79773a381f6eeb1b2b3d94a0cc3963f98a733be8a511cece4c47337f99a956/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7072657374612f736974656d61702d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/presta/sitemap-bundle)[![Downloads Monthly](https://camo.githubusercontent.com/fc133adc82822948b30ee739be576609be4f81849ea88d186b1f04027bf458a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7072657374612f736974656d61702d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/presta/sitemap-bundle)[![Contributors](https://camo.githubusercontent.com/e2cc30629f302d338dc9bc9ca91ad5690bb523464cabf96d35e66ecb5968059e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f707265737461636f6e636570742f507265737461536974656d617042756e646c653f7374796c653d666c61742d737175617265)](https://github.com/prestaconcept/PrestaSitemapBundle/graphs/contributors)

This bundle handle your XML sitemap in a Symfony application.

Overview
--------

[](#overview)

Allow sitemapindex file:

```

        https://acme.org/sitemap.static.xml
        2020-01-01T10:00:00+02:00

```

and urlset files:

```

        https://acme.org/
        2020-01-01T10:00:00+02:00
        daily
        0.5

        https://acme.org/contact
        2020-01-01T10:00:00+02:00
        daily
        0.5

```

A sandbox is available in a dedicated [GitHub repository](https://github.com/yann-eugone/presta-sitemap-test-project).

You may also have a look to [Prestaconcept's website sitemap](https://www.prestaconcept.net/sitemap.xml)(which is built with this bundle).

Features
--------

[](#features)

- Configure with a single option which routes you want to include in your sitemap
- Generate one Sitemapindex and as many Urlset as you need
- Access sitemap on the fly with a symfony controller or Dump sitemap to files for faster sitemap
- Comply with Urlset specifications : 50k items / 10MB per file
- Decorates your sitemap with images, video, mobile and multilang urls
- No database required

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

[](#documentation)

You will find the detailed documentation in the following links:

- [Installation](doc/1-installation.md)
- [Configuration](doc/2-configuration.md)
- [Static routes usage](doc/3-static-routes-usage.md)
- [Dynamic routes usage](doc/4-dynamic-routes-usage.md)
- [Decorating URLs](doc/5-decorating-urls.md)
- [Dumping sitemap](doc/6-dumping-sitemap.md)
- [Messenger integration](doc/7-messenger-integration.md)

Versions
--------

[](#versions)

This bundle is compatible with all Symfony versions since `2.3.0`.

However, like Symfony, we do not provide support for Symfony's version that reached EOL.

Contributing
------------

[](#contributing)

Please feel free to open an [issue](https://github.com/prestaconcept/PrestaSitemapBundle/issues)or a [pull request](https://github.com/prestaconcept/PrestaSitemapBundle), if you want to help.

Thanks to [everyone who has contributed](https://github.com/prestaconcept/PrestaSitemapBundle/graphs/contributors) already.

---

*This project is supported by [PrestaConcept](http://www.prestaconcept.net)*

Released under the [MIT License](LICENSE)

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance76

Regular maintenance activity

Popularity67

Solid adoption and visibility

Community46

Growing community involvement

Maturity83

Battle-tested with a long release history

 Bus Factor3

3 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 ~106 days

Recently: every ~138 days

Total

46

Last Release

153d ago

Major Versions

v1.7.0 → v2.0.0-beta.12019-09-30

v1.7.2 → v2.0.0-beta.32020-01-02

v1.7.3 → v2.4.02020-12-17

2.x-dev → v3.0.02021-04-09

3.x-dev → v4.0.02024-01-10

PHP version history (6 changes)v1.0.0PHP &gt;=5.3.0

v1.6.0PHP &gt;=5.4.0

v2.0.0-beta.1PHP &gt;=7.1.0

v3.0.0PHP &gt;=7.1.3

v4.0.0PHP &gt;=7.2.5|&gt;=8.0.2

v4.2.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/696ae505ade1f6c2c2074411d2ff191d307030fcc3c62e9b9054298f9d05f4ad?d=identicon)[yann-eugone](/maintainers/yann-eugone)

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

![](https://www.gravatar.com/avatar/e229e02c5eca6d2ea70e3e40bdd2f9e0136fc6f2428397fe05a45b2ec78efe9a?d=identicon)[J-Ben87](/maintainers/J-Ben87)

---

Top Contributors

[![yann-eugone](https://avatars.githubusercontent.com/u/1303838?v=4)](https://github.com/yann-eugone "yann-eugone (61 commits)")[![halundraN](https://avatars.githubusercontent.com/u/733251?v=4)](https://github.com/halundraN "halundraN (22 commits)")[![norkunas](https://avatars.githubusercontent.com/u/2722872?v=4)](https://github.com/norkunas "norkunas (14 commits)")[![iamdey](https://avatars.githubusercontent.com/u/65737?v=4)](https://github.com/iamdey "iamdey (13 commits)")[![Koc](https://avatars.githubusercontent.com/u/191082?v=4)](https://github.com/Koc "Koc (10 commits)")[![kostiklv](https://avatars.githubusercontent.com/u/620982?v=4)](https://github.com/kostiklv "kostiklv (10 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (6 commits)")[![mente](https://avatars.githubusercontent.com/u/391997?v=4)](https://github.com/mente "mente (6 commits)")[![arosslau](https://avatars.githubusercontent.com/u/1165224?v=4)](https://github.com/arosslau "arosslau (5 commits)")[![pulzarraider](https://avatars.githubusercontent.com/u/960844?v=4)](https://github.com/pulzarraider "pulzarraider (5 commits)")[![BenoitLeveque](https://avatars.githubusercontent.com/u/242870?v=4)](https://github.com/BenoitLeveque "BenoitLeveque (4 commits)")[![ostrolucky](https://avatars.githubusercontent.com/u/496233?v=4)](https://github.com/ostrolucky "ostrolucky (3 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (3 commits)")[![tonypiper](https://avatars.githubusercontent.com/u/206124?v=4)](https://github.com/tonypiper "tonypiper (3 commits)")[![lemoinem](https://avatars.githubusercontent.com/u/234992?v=4)](https://github.com/lemoinem "lemoinem (2 commits)")[![NoodlesNZ](https://avatars.githubusercontent.com/u/1063979?v=4)](https://github.com/NoodlesNZ "NoodlesNZ (2 commits)")[![coreygans](https://avatars.githubusercontent.com/u/5404391?v=4)](https://github.com/coreygans "coreygans (2 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (2 commits)")[![maff](https://avatars.githubusercontent.com/u/27403?v=4)](https://github.com/maff "maff (1 commits)")[![mikemeier](https://avatars.githubusercontent.com/u/776406?v=4)](https://github.com/mikemeier "mikemeier (1 commits)")

---

Tags

phpsitemapsymfonysymfony-bundlesymfonybundlexmlSitemapprestaconcept

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[rumenx/php-sitemap

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

1.3k15.1k1](/packages/rumenx-php-sitemap)[symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

501.6M6](/packages/symfony-bundles-json-request-bundle)[eprofos/user-agent-analyzer

A powerful Symfony bundle for user-agent analysis. It provides accurate detection of operating systems (Windows, MacOS, Linux, iOS, Android...), browsers (Chrome, Firefox, Safari...), and device types (Desktop, Mobile, Tablet, TV...). Supports specific version detection and includes advanced handling of special cases like WebViews and compatibility modes. Features comprehensive logging and detailed analysis results.

182.3k](/packages/eprofos-user-agent-analyzer)

PHPackages © 2026

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