anomaly / sitemap-extension
A dynamic sitemap generator extension.
Installs: 41 334
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 6
Type:streams-addon
pkg:composer/anomaly/sitemap-extension
Requires
- anomaly/streams-platform: ^1.10
- spatie/laravel-sitemap: ^7.3
- 2.4.x-dev
- v2.4.0
- 2.3.x-dev
- v2.3.2
- v2.3.1
- v2.3.0
- 2.2.x-dev
- v2.2.14
- v2.2.13
- v2.2.12
- v2.2.11
- v2.2.10
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- 2.1.x-dev
- v2.1.11
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2025-12-04 02:19:11 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.