PHPackages                             botalaszlo/symfony-repositemap-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. botalaszlo/symfony-repositemap-bundle

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

botalaszlo/symfony-repositemap-bundle
=====================================

RepoSiteMapbundle is a symfony 2 bundle which provides creating sitemap.xml from static urls and from entity repository.

1.1.x-dev(10y ago)05MITPHPPHP &gt;=5.5.9

Since May 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/botalaszlo/symfony-repositemap-bundle)[ Packagist](https://packagist.org/packages/botalaszlo/symfony-repositemap-bundle)[ RSS](/packages/botalaszlo-symfony-repositemap-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

RepoSiteMap Bundle (for symfony2)
=================================

[](#repositemap-bundle-for-symfony2)

RepoSiteMapbundle is a symfony 2 bundle which provides creating sitemap.xml from **static pages** and from **dynamic pages** (like posts, articles, products details page) so the bundle will be generate **urls for each entities view page**.

\##Requirements (minimum)

- PHP 5.3.0
- Symfony 2.3.0
- [@Route annotation](http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/routing.html)

You can find the requirements in the composer.json too.

\##Installation Add to the `composer.json` in the root folder.

```
"require": {
        //...
        "botalaszlo/symfony-repositemap-bundle": "dev-master"
    }

```

Add the bundle to the `RegisterBundle` function in the `app/AppKernel.php`

```
public function registerBundles()
    {
        $bundles = array(
            //...
            new RepoSiteMapBundle\RepoSiteMapBundle(),
        );
    }

```

Add the bundle to the `routing.yml` in the `app/config.yml`

```
# RepoSiteMap Bundle
RepoSiteMapBundle:
    resource: @RepoSiteMapBundle/Controller/
    type:     annotation

```

\##Usage For the usage you have to use **@Route annotations**. ###Static pages You have to add the `"sitemap"=true` value in `options` of the @Route annotation. This will generate one url for the Home controller's index action.

```
    /**
     *
     * @Route("/home/index ", name="AppBundle_home_index", options={"sitemap"=true})
     */
    public function indexAction() {
      //...
    }

```

\###Dynamic pages If you have view pages for entities, like for "posts", "articles", "products" then you have to add the **entity's path** in the options. So the bundle will be **dynamicly generate urls for each entities detail view**. Use this format: `"sitemap" = {"repository" = "[[EntityPath]]"`

```
    /**
     * @Route("/product/{id} ", name="AppBundle_product", options={"sitemap" = {"repository" = "AppBundle:Slip"}})
     */
    public function listAction() {
      //...
    }

```

In this case the trick that you add the entity's path. Then bundle will count the entities in the table to get to know how many rows are in the table. So it will be dynamicly generate the view page for each entities.

\##Todo This bundle has very limited features. It does not handle the date, frequency or priority values for sitemap urls. This features will be implemented in the future.

If you have any advice, do not hesitate inform me.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

3697d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7694982?v=4)[Bota Laszlo](/maintainers/botalaszlo)[@botalaszlo](https://github.com/botalaszlo)

---

Top Contributors

[![botalaszlo](https://avatars.githubusercontent.com/u/7694982?v=4)](https://github.com/botalaszlo "botalaszlo (10 commits)")

---

Tags

bundlexmlSymfony2Sitemap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/botalaszlo-symfony-repositemap-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[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)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

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

9421.6k60](/packages/open-dxp-opendxp)

PHPackages © 2026

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