Download the PHP package nepttune/sitemap without Composer
On this page you can find all versions of the php package nepttune/sitemap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nepttune/sitemap
More information about nepttune/sitemap
Files in nepttune/sitemap
Download nepttune/sitemap
More information about nepttune/sitemap
Files in nepttune/sitemap
Vendor nepttune
Package sitemap
Short Description Sitemap generator component
License MIT
Homepage https://www.peldax.com
Package sitemap
Short Description Sitemap generator component
License MIT
Homepage https://www.peldax.com
Please rate this library. Is it a good library?
Informations about the package sitemap
Sitemap
:wrench: Sitemap generator component
Introduction
This componenet automaticaly generates sitemap from annotated presenter actions. Found actions are cached to improve performance.
Installation
Install package using composer
Dependencies
How to use
- Implement
\Nepttune\TI\ISitemap
interface and use\Nepttune\TI\TSitemap
trait in selected presenters (Those which should have links in sitemap.). - Add annotation
@sitemap
to selected actions. - Register
\Nepttune\Component\ISitemapFactory
as service in cofiguration file. - Inject it into eg. SitemapPresenter, write
createComponent
method and use macro{control}
in template file.- Just as any other component.
- Content type is automaticaly set to
application/xml
.
Example configuration
You can optionaly provide configuration array and enable hreflang links to be included for each entry (Requires translator in presenter).
Example presenter
All versions of sitemap with dependencies
PHP Build Version
Package Version
The package nepttune/sitemap contains the following files
Loading the files please wait ....