The LUYA sitemap.xml module provides sitemap.xml support for SEO.
Currently it only generates sitemap entries for pages created by the CMS module.
Warning: Code is still in experimental state, so use with care!
For the installation of modules Composer is required.
composer require cebe/luya-module-sitemap:~0.9.0@alpha
Add the frontend module of the sitemap module to your configuration modules section:
return [
'modules' => [
// ...
'sitemap' => cebe\luya\sitemap\Module::class,
// ...
],
];
Please note that the module name sitemap is required and should not be changed!
In order to run the unit tests install sqlite
sudo apt-get install php-sqlite3
and run the tests
./vendor/bin/phpunit tests/