nietthijmen / sitemap-compare
A CLI tool for working with sitemaps.
1.0.1
2025-09-19 11:22 UTC
Requires
- php: ^8.2
- ext-simplexml: *
Requires (Dev)
- illuminate/http: ^12.17
- larastan/larastan: ^3.7
- laravel-zero/framework: ^12.0
- laravel/pint: ^1.25
- mockery/mockery: ^1.6.12
- pestphp/pest: ^3.8.2
- phpstan/phpstan: ^2.1
- spatie/fork: ^1.2
README
Find sitemaps, urls, compare sitemaps and even compare websites to sitemaps.
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
- Install via composer
composer global require nietthijmen/sitemap-compare
- You're done!
Installation (development)
- Clone the repository:
- Navigate to the project directory:
cd sitemap-finder
- Install dependencies using Composer:
composer install
- 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