🚀 Initial Release: Sitemapper v0.0.1
We are thrilled to announce the very first release of Sitemapper! 🎉
Sitemapper is a powerful, framework-agnostic, and Enterprise-Ready Sitemap generator for PHP, Laravel, and Symfony. It provides a highly robust set of tools to boost your SEO out of the box.
✨ Key Features & Highlights
1. 📦 Automatic Sitemap Chunking (Indexing)
Never worry about the 50,000 URL limit again. Sitemapper automatically splits large sitemaps into multiple chunk files (e.g., sitemap-1.xml, sitemap-2.xml) and generates a Master sitemap-index.xml file.
2. 🗜️ GZIP Compression
Reduce bandwidth and improve crawl speeds by automatically generating compressed .xml.gz sitemaps via the config setting useGzip: true.
3. 📡 Search Engine Pinging
Instantly notify major search engines (Google & Bing) about your sitemap updates using the built-in ping() method.
4. ⚡ PSR-16 Caching Support
Cache your generated sitemaps seamlessly using any PSR-16 compliant cache (like Laravel Cache). This significantly prevents server overload on dynamic sitemap generations.
5. 🌐 PSR-7 HTTP Responses
Easily return your sitemap as a direct HTTP response for Slim, Mezzio, or any PSR-7 based frameworks via the SitemapResponse wrapper.
6. 🔍 Dynamic Discovery (Scanners & Routes)
- Directory Scanner: Automatically traverse static folders and map
.html(or custom extension) files to your sitemap URLs. - Framework Adapters: Use the
scanRoutes()method inLaravelSitemapAdapterandSymfonySitemapAdapterto dynamically add all yourGETroutes to the sitemap with a single line of code!
7. 🛡️ Code Quality & Reliability
- 100% PHPStan compliance (No Type or Analysis Errors).
- Strict PSR-12 standard formatting.
- Robust Test Suite passing gracefully.
💻 Installation
composer require skywalker-labs/sitemapper