Skip to content
Generate your sitemap with your routes definitions.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
sitemap.php

README.md

Symfony-jms-sitemap-generator

PHP script to generate your sitemap using your routes files. This script small script only work with YAML.

Very usefull if you use the JMSI18nRoutingBundle and JMSTranslationBundle Symfony2 bundle.

To use it, you just have to customize the lines below:

CONST ROUTE_PATH = "/var/www/website/src/Dim/YourBundle/Resources/translations/routes.__LANG__.yml";
CONST OUTPUT_FILE = "/var/www/website/web/sitemap.xml";
CONST WEBSITE_URL = "http://www.website.org";
CONST TRANSLATIONS = array('fr', 'en', 'es');
You can’t perform that action at this time.