kphoen/sitemap-generator
A framework-agnostic PHP library for building XML sitemaps. Add URLs with optional metadata, then render standards-compliant sitemap or sitemap index files, optionally gzipped. Simple, dependency-free API for keeping search engines up to date.
robots.txt. The real decision this package informs is not "which generator" but "do we spend engineering sprints on this at all, or adopt a library and move on." Framing it that way protects roadmap capacity for work that actually moves retention or revenue.changefreq/priority we advertise, whether we publish a sitemap index with per-section children, and how we handle pagination past the 50k-URL / 50MB limits. Those are product decisions about what we want crawled, not implementation details.robots.txt, structured data, and a crawl-budget strategy. Adopting a generator in isolation is a partial solution; the PM decision is whether SEO is a committed OKR this quarter or a checkbox.Consider it only in narrow circumstances:
Look elsewhere — decisively — when any of the following hold:
Treat the internal score as a confirming signal rather than the argument: a 0.67 overall with an opportunity score of 13 and zero dependents says this package has no ecosystem momentum to borrow.
To executives: Sitemap generation is table stakes, not a differentiator — it tells search engines what to crawl. We evaluated an open-source generator that is free (MIT) but was last released in 2015 and is now archived, meaning nobody fixes it when PHP or our framework moves. The license lets us copy the code, but then we own it permanently. Recommendation: do not adopt as a dependency; if SEO is on the roadmap, allocate one short sprint to a maintained, Laravel-native package (or a small in-house generator) alongside canonical tags and robots.txt, and treat it as a single bundled SEO work item rather than a standalone initiative.
To engineering: The library's only real asset is a clean separation between record iteration and XML emission, with Propel/Doctrine adapters. That pattern is worth ten minutes of reading and about a day of reimplementation. Depending on it means: no PHP 8 support, Composer abandoned-package warnings in CI, an unowned fork the moment we need a fix, and an adapter layer between our Eloquent models and a foreign ORM abstraction. If someone wants to reuse the approach, vendor the file with a license header and a comment pointing at the upstream repo — do not add it to composer.json.
One-line recommendation: Free but abandoned — copy the idea, not the dependency; ship sitemaps with a maintained package inside a broader SEO work item.
How can I help you explore Laravel packages today?