What PHP XML Sitemap Generator does
The repository ships a PHP library and a CLI binary, bin/sitemap, that start from a URL, follow internal links, and write standard XML sitemaps plus optional image, video and news files. It handles robots.txt per RFC 9309, gzip compression, sitemap index files and rate limiting. Only indexable canonical pages are kept, so redirects, noindex pages and duplicates are dropped.
Version 3.1 adds MySQL and PostgreSQL storage alongside SQLite, working change detection, and a scheduler that uses real cron expressions without overlapping runs. Crawls can resume after Ctrl+C from checkpoints, use rotating proxies, send webhook notifications, and write JSON reports covering SEO, content quality, duplicates and broken links. JavaScript rendering is flagged as not functional yet.
Key features
- Database storage and change detection
- SQLite, MySQL or PostgreSQL tables record each crawl so new, changed and removed URLs can be tracked over time.
- Resume crawls from checkpoints
- Interrupting with Ctrl+C preserves progress, and the next run continues from the saved checkpoint instead of starting over.
- Multi-format sitemap writers
- Separate writers produce standard XML, image, video and news sitemaps, all linked from a generated sitemap index file.
- robots.txt parsing per RFC 9309
- Group matching and longest match rules decide which paths are allowed, so disallowed URLs are skipped during the crawl.
- Cron scheduler without overlaps
- Scheduled crawls use real cron expressions, and the scheduler prevents two runs from executing at the same time.
- SEO and quality JSON reports
- Reports written to the report directory cover SEO findings, content quality, duplicate pages and broken links.
- Proxy support with rotation
- Requests can be routed through a proxy URL, and the material lists rotation as part of the 3.0 feature set.
- Webhook notifications on events
- A webhook URL receives event notifications during a run, with credentials redacted from webhook payloads, database rows and logs.
- Rate limiting during crawl
- A rate limit option throttles requests so the target server is not flooded during a crawl.
- Concurrent HTTP requests
- The generator issues concurrent HTTP requests, which the material presents as its performance feature for large sites.
- Private address blocking
- Crawling can block private and internal addresses and enforces a response size limit on fetched pages.
- PHP library classes
- Fetcher, crawler, analyzer, cache and database classes can be called directly from PHP code instead of the CLI.
How it works
- Install the package and confirm PHP 8.0 or later with curl, xml, mbstring, zlib and pdo.
- Run php bin/sitemap --url= followed by the site address.
- The crawler fetches pages concurrently, respects robots.txt and applies the rate limit.
- Redirects, noindex pages and duplicates are filtered out, and exclude patterns drop unwanted URLs.
- Writers produce sitemap.xml plus image, video or news files listed in sitemap-index.xml.
- JSON reports land in the report directory, and database storage compares each crawl with earlier ones.
Plans and pricing
Released under the MIT licence with no paid tier, subscription or price printed on the repository.
Integrations and platforms
Works with
- MySQL
- PostgreSQL
- SQLite
- Docker
- cron
- Webhooks
- Proxy servers
Available as
- CLI
- API
Repository facts
- Repositoryiprodev/PHP-XML-Sitemap-Generator
- LanguagePHP
- Stars84
- Forks50
- LicenceMIT
- Created2016-03-28
- Last commit2026-11-21
- Open issues0
Services and details
Does SEO work itself
YesTechnical audits
YesFree plan or free tools
YesAPI or MCP server
Yes
No information yet on keyword research, content optimization, writes content with AI, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company iprodev
- Website: github.com/iprodev/PHP-XML-Sitemap-Generator
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.