Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Sitemap Bundle

Sitemap Bundle Laravel Package

kphoen/sitemap-bundle

Symfony bundle for generating XML sitemaps from your application’s routes and URLs. Configure sitemap entries and produce sitemap.xml to help search engines discover and index your content.

View on GitHub
Deep Wiki
Context7

Provides a way to create/generate a sitemap using Doctrine, custom providers, etc.

Frequently asked questions about Sitemap Bundle
Is kphoen/sitemap-bundle compatible with Laravel?
No. kphoen/sitemap-bundle is a Symfony bundle that relies on Symfony dependency injection, routing, and bundle conventions, not Laravel. It has no Laravel service provider, facade, or Laravel version support. You can study its provider pattern, but direct Laravel adoption requires bridging or porting Symfony-specific abstractions.
How do I install kphoen/sitemap-bundle with Composer?
In a Symfony application, install it with Composer using the package name kphoen/sitemap-bundle and enable the bundle in your Symfony kernel or bundles configuration. It is not a Laravel package, so there is no Laravel package discovery or config publishing step. Check PHP and Symfony version constraints before installing because the package is archived and will not receive compatibility updates.
Can I use this Symfony sitemap bundle in a Laravel application?
Only in narrow cases, such as running sitemap generation as a separate Symfony worker or reusing the provider concept in an isolated service. Importing Symfony container, routing, and Doctrine-based providers into Laravel adds significant overhead. For most Laravel apps, an Eloquent-friendly generator or a small internal sitemap service is the safer path.
How do I configure sitemap sections in kphoen/sitemap-bundle?
Sections are defined declaratively through the bundle configuration and tagged Symfony services. Each section maps to a set of URLs and can include metadata such as lastmod, changefreq, and priority. A built-in controller exposes the generated XML through Symfony routing, including sitemap index output for larger sites.
Does kphoen/sitemap-bundle support sitemap index files for large sites?
Yes. The bundle can generate valid sitemap.xml output and sitemap index files for large sites. That helps split URL sets across multiple sitemap files, but you still need chunked queries, streaming XML, and scheduled generation to handle high URL volumes safely. Search engines expect sitemap indexes to stay under limits such as 50,000 URLs per file.
Can I set lastmod, changefreq, and priority per URL?
Yes. The bundle supports lastmod, changefreq, and priority metadata per URL, which lets you express freshness and relative importance in the sitemap. Keep lastmod accurate because stale or misleading values can reduce trust in the sitemap. Validate the generated XML after configuration changes.
How do I test a sitemap generated by this bundle?
Validate the XML against the sitemap schema and assert URL counts, status codes, canonical values, and lastmod formats. Add tests for sitemap index references and for filtering rules that exclude non-canonical or noindex URLs. Since the package is archived, you cannot rely on upstream test coverage or future fixes, so your own regression tests are essential.
Is kphoen/sitemap-bundle safe to use in production?
It carries high technical risk. The package is archived, has 23 stars, zero dependents, and no maintained upstream, so there will be no security patches, PHP or Symfony compatibility updates, or bug fixes. If you adopt it, vendor or fork it with explicit ownership, pin versions, and monitor generation failures because invalid or stale XML can be customer-visible.
What are the best Laravel alternatives to kphoen/sitemap-bundle?
Look for actively maintained Laravel sitemap packages that integrate with Eloquent, Laravel routing, caching, and the scheduler. Alternatively, build a small internal generator using Laravel commands or jobs, chunked Eloquent queries, a streaming XML writer, and static or CDN publication. The key requirement is maintained compatibility and clear ownership, which this Symfony bundle does not provide for Laravel.
How do I maintain or fork this archived Symfony bundle?
Treat a fork as owned code: pin the source, document PHP and Symfony constraints, and add tests for XML schema, URL counts, status codes, canonical values, and lastmod. Keep generation isolated behind a Symfony command and publish XML to storage or a CDN rather than generating on every request. Define a deprecation plan and compare the fork cost against porting the provider concept into Laravel-native commands or jobs.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect