nietthijmen/sitemap-compare

A CLI tool for working with sitemaps.

1.0.1 2025-09-19 11:22 UTC

This package is auto-updated.

Last update: 2025-09-19 14:11:51 UTC


README

Find sitemaps, urls, compare sitemaps and even compare websites to sitemaps.

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Features

  • Find sitemaps from a website
  • Find urls from a sitemap
  • Compare two sitemaps
  • Compare a website to a sitemap
  • Export results to JSON or CLI format
  • Multithreaded for speed (requires pcntl extension)
  • Command line interface (CLI) for easy use

Requirements

  • PHP 8.0 or higher
  • Composer
  • pcntl extension
  • cURL extension
  • SimpleXML extension
  • JSON extension
  • mbstring extension

Installation

  1. Install via composer
composer global require nietthijmen/sitemap-compare 
  1. You're done!

Installation (development)

  1. Clone the repository:
  2. Navigate to the project directory:
    cd sitemap-finder
  1. Install dependencies using Composer:
    composer install
  1. Run the application:
    php sitemap-compare list

Usage

Find sitemaps from a website

    php sitemap-compare sitemap:find <website_url>

Find urls from a sitemap

    php sitemap-compare url:find <website_url>

Compare two sitemaps

    php sitemap-compare compare:sitemaps <url 1> <url 2> --output-format=json

Compare a website to a sitemap

Warning, this will take a long long long time

  • it will most likely stress the target website, so do it on your OWN servers
    php sitemap-compare compare:website <source url> <target url> --output-format=cli --concurrency=5