Loading...
Loading...

Sitemap Generator

generate a google sitemap XML file

sitemap-generator

Generate your sitemap with navigation, custom dynamic pages and static sites.

Required Laminas Components

  1. laminas/laminas-xml

Required Laminas Starter Kit Components

  1. navigation-generator

On-line Generator

Setup Instructions

  1. Ensure you have module called: %module% in your application.
  2. Create a PHP file called %viewFolderName%Controller.php in: [root]/module/%module%/src/Controller/ and paste the contents from above.
  3. Inject content of 'controllers' -> 'factories' and 'router' into pre-existing sections in the module/%module%/config/module.config.php file.
  4. Copy index.phtml file into folder called: 'module/%module%/view/%viewFolderName%/'.

Throubleshooting

Make sure your application contains all the required plugins from "Required Laminas Components" and "Required Laminas Kit Components".
You can learn how to add missing dependencies in this video:

Parameters

Param name Type Default value Description
name text NULL Sets a sitemap name
module text NULL Sets a module name
menu_name text NULL Sets a menu name

CLI Usage

"vendor/bin/laminas.bat" mvc:sitemap --module=<moduleName> <sitemap_name> <menu_name>

Example Usage

"vendor/bin/laminas.bat" mvc:sitemap --module=Application Sitemap MyMenu

Learn more with Laminas Book:

Laminas MVC: the most innovative framework in PHP - get a book on Amazon

Need help? Checkout our setup page, video tutorials or ask questions on our forum!

Help Tutorials Forum
TOP