anomaly / sitemap-extension
A dynamic sitemap generator extension.
Package info
github.com/anomalylabs/sitemap-extension
Type:streams-addon
pkg:composer/anomaly/sitemap-extension
v2.4.0
2025-12-04 02:18 UTC
Requires
- anomaly/streams-platform: ^1.10
- spatie/laravel-sitemap: ^7.3
This package is auto-updated.
Last update: 2026-06-04 03:21:48 UTC
README
anomaly.extension.sitemap
A dynamic sitemap generator extension.
The Sitemap Extension automatically generates XML sitemaps for your PyroCMS application with support for multiple addons and custom entries.
Features
- Automatic sitemap generation
- Multi-addon support
- Customizable priorities
- Change frequency configuration
- SEO optimization
- Dynamic content indexing
- Automatic URL discovery
Usage
Accessing Sitemap
The sitemap is automatically available at /sitemap.xml once the extension is installed.
Configuration
Navigate to Settings > Extensions > Sitemap in the control panel to configure:
- Enabled addons/modules
- URL priorities
- Change frequencies
- Additional URLs
Programmatic Access
use Anomaly\SitemapExtension\Sitemap\SitemapGenerator; $generator = app(SitemapGenerator::class); // Generate sitemap $sitemap = $generator->generate(); // Add custom URLs $generator->add('/custom-page', [ 'priority' => 0.8, 'changefreq' => 'weekly' ]);
In Twig
{# Link to sitemap #} <link rel="sitemap" type="application/xml" href="/sitemap.xml"> {# Generate sitemap link #} <a href="{{ url('sitemap.xml') }}">Sitemap</a>
Extending Sitemap
// In your service provider protected function boot() { $this->app['sitemap']->add('/my-custom-url', [ 'priority' => 0.7, 'changefreq' => 'monthly', 'lastmod' => now() ]); }
Requirements
- Streams Platform ^1.10
- PyroCMS 3.10+
- Spatie Laravel Sitemap ^7.3+
License
The Sitemap Extension is open-sourced software licensed under the MIT license.