PHPackages                             evheniy/sitemap-xml-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. evheniy/sitemap-xml-bundle

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

evheniy/sitemap-xml-bundle
==========================

The SitemapXmlBundle adds the ability to generate sitemap.xml file to your application.

1.0.0(10y ago)218.5kMITPHPPHP &gt;=5.3.0

Since Oct 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/evheniy/SitemapXmlBundle)[ Packagist](https://packagist.org/packages/evheniy/sitemap-xml-bundle)[ RSS](/packages/evheniy-sitemap-xml-bundle/feed)WikiDiscussions master Synced 2d ago

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

SitemapXmlBundle
================

[](#sitemapxmlbundle)

This bundle provides sitemap.xml generator for Symfony2

[![knpbundles.com](https://camo.githubusercontent.com/4e126e36399f6fe42e05459b59c82d840af88b18d8ca7d161b97a2689c9d34cf/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f536974656d6170586d6c42756e646c652f6261646765)](http://knpbundles.com/evheniy/SitemapXmlBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/184641d67af6a6bc5d4eddcd585f575cb366838ec0062285ecb7d77a5cee02b6/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f736974656d61702d786d6c2d62756e646c652f762f737461626c65)](https://packagist.org/packages/evheniy/sitemap-xml-bundle) [![Total Downloads](https://camo.githubusercontent.com/7fccba590c60912f750104568da644996261cd67b36a49b27024cbef5d72a355/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f736974656d61702d786d6c2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/evheniy/sitemap-xml-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/18902d7162c7f07d9644ceec83ffa97af62686da64191ec5c4687a292763918f/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f736974656d61702d786d6c2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/evheniy/sitemap-xml-bundle) [![License](https://camo.githubusercontent.com/4fb345dced70bcf30998defac961126e30c4006564b54a5c1e412b1e25d22e31/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f736974656d61702d786d6c2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/evheniy/sitemap-xml-bundle)

[![Build Status](https://camo.githubusercontent.com/484ead59881bbf5c04abcbe2d6cefed4ec4272515fa5f602b678b72f018c538f/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f536974656d6170586d6c42756e646c652e737667)](https://travis-ci.org/evheniy/SitemapXmlBundle)[![Coverage Status](https://camo.githubusercontent.com/02d613c7b01d5b4e19db11a4ec078924c9180ecf6a62df32d117c26d9b4ade2d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f536974656d6170586d6c42756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/SitemapXmlBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c693103b625925ae0771348c4a15993ef5abeb3dc28debb5895437c7694b519a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f536974656d6170586d6c42756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/SitemapXmlBundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/76daa9b38f8eff7cea0a00a706ffd0276b53e3283cbfa9b21f7d40d10ac5907c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f536974656d6170586d6c42756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/SitemapXmlBundle/build-status/master)

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

[](#installation)

```
$ composer require evheniy/sitemap-xml-bundle "1.*"

```

Or add to composer.json

```
"evheniy/sitemap-xml-bundle": "1.*"

```

AppKernel:

```
public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\SitemapXmlBundle\SitemapXmlBundle(),
            new AppBundle\AppBundle(),
            ...
        );
        ...
...

```

You should set bundle before main bundle (in our example it's AppBundle) and extend SiteMapDumpCommand ( setEntities() method )

The easy way to create sitemap:

```
