• Verified
  • Free plan

PHP XML Sitemap Generator

Listed under GitHub repos

PHP XML Sitemap Generator is an open source PHP library and command line crawler that creates sitemaps, including image, video and news sitemaps, and can produce SEO and broken link reports. It is free.

Used for

  • XML sitemap generation
  • site crawling
  • broken link reports

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

  1. Install the package and confirm PHP 8.0 or later with curl, xml, mbstring, zlib and pdo.
  2. Run php bin/sitemap --url= followed by the site address.
  3. The crawler fetches pages concurrently, respects robots.txt and applies the rate limit.
  4. Redirects, noindex pages and duplicates are filtered out, and exclude patterns drop unwanted URLs.
  5. Writers produce sitemap.xml plus image, video or news files listed in sitemap-index.xml.
  6. 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

    Yes
  • Technical audits

    Yes
  • Free plan or free tools

    Yes
  • API 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.

Compare with other SEO tools:

About the company

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.