This bundle provides some classes for an automatic sitemap.xml generation.

Installs: 3 604

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0


3.2.0 2020-02-17 18:40 UTC

This package is auto-updated.

Last update: 2020-02-17 18:40:45 UTC


Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage

This bundle provides some classes for an automatic sitemap.xml generation.


Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require core23/sitemap-bundle

Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Core23\SitemapBundle\Core23SitemapBundle::class => ['all' => true],

Configure the Bundle

Create a configuration file called core23_sitemap.yaml:

# config/routes/core23_sitemap.yaml

    resource: '@Core23SitemapBundle/Resources/config/routing/sitemap.yml'
    prefix: /

Add static entries

You can add static entries in your yaml config:

# config/packages/core23_sitemap.yaml

        - { url: '', priority: 75, changefreq: 'weekly' }

Add a custom sitemap

If you want to create a custom sitemap, the only thing you have to do is to create a service that uses Core23\SitemapBundle\Sitemap\SitemapServiceInterface and tag the service with core23.sitemap.

    <service id="App\Sitemap\CustomSitemap">
      <tag name="core23.sitemap"/>


This bundle is under the MIT license.