Download the PHP package iprodev/sitemap-generator-pro without Composer
On this page you can find all versions of the php package iprodev/sitemap-generator-pro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iprodev/sitemap-generator-pro
More information about iprodev/sitemap-generator-pro
Files in iprodev/sitemap-generator-pro
Package sitemap-generator-pro
Short Description A professional, production-ready PHP XML sitemap generator with advanced features: concurrency, robots.txt, caching, database storage, change detection, SEO analysis, JavaScript rendering, proxy support, webhooks, and more.
License MIT
Homepage https://github.com/iprodev/sitemap-generator-pro
Informations about the package sitemap-generator-pro
PHP XML Sitemap Generator (Library + CLI)
A professional, production-ready PHP sitemap generator by iProDev (Hemn Chawroka) โ supports concurrency, robots.txt, gzip compression, sitemap index files, and comprehensive error handling.
๐ What's New in v3.0
- โจ Database Storage with change detection and historical tracking
- ๐ Resume Capability with checkpoint system
- ๐ฏ SEO Analysis and content quality checking
- ๐ Performance Metrics and detailed analytics
- ๐ผ๏ธ Multi-format Sitemaps (Images, Videos, News)
- ๐ JavaScript Rendering support for SPAs
- ๐ Proxy Support with rotation
- ๐ Webhook Notifications for events
- ๐ Scheduled Crawling with cron integration
- ๐จ Interactive Mode for easy configuration
- โก Caching System (File & Redis)
- ๐๏ธ Smart Filtering with priority rules
- ๐ Rate Limiting with retry handling
๐ Table of Contents
- Features
- Installation
- Quick Start
- CLI Usage
- Advanced Features
- Programmatic Usage
- Examples
- Configuration
- API Reference
- Testing
- Docker
- Troubleshooting
- Contributing
โจ Features
Core Features
- ๐ High Performance - Concurrent HTTP requests
- ๐ค Robots.txt Compliant - Respects crawling rules
- ๐ฆ Gzip Compression - Automatic compression
- ๐ Sitemap Index - Multiple sitemap files
- ๐ก๏ธ Error Handling - Comprehensive error management
- ๐ PSR-3 Logging - Standard logging interface
Advanced Features
- ๐พ Database Storage - SQLite/MySQL/PostgreSQL support
- ๐ Change Detection - Track URL changes over time
- ๐ SEO Analysis - Analyze pages for SEO issues
- ๐ Quality Checks - Find duplicates, broken links
- ๐ฏ Smart Filtering - Include/exclude patterns
- โก Caching - File and Redis cache support
- ๐ Resume Support - Continue interrupted crawls
- ๐ Webhooks - Real-time notifications
- ๐ Scheduling - Automated periodic crawls
- ๐ JavaScript - Render SPAs with headless Chrome
- ๐ Proxy Support - HTTP/SOCKS proxies with rotation
- ๐จ Interactive Mode - User-friendly configuration
Sitemap Types
- ๐ Standard XML Sitemap
- ๐ผ๏ธ Image Sitemap
- ๐ฌ Video Sitemap
- ๐ฐ News Sitemap
๐ฅ Installation
Requirements
- PHP >= 8.0
- Extensions: curl, xml, mbstring, zlib, pdo
- Optional: redis, posix
๐ Quick Start
Basic Usage
Interactive Mode
With All Features
๐ฅ๏ธ CLI Usage
Basic Options
Caching
Database & Change Detection
Resume Support
Rate Limiting
Filtering
SEO & Analysis
Advanced Sitemaps
JavaScript Rendering
Proxy Support
Webhooks
๐ฏ Advanced Features
1. Database Storage & Change Detection
Track changes over time:
The system will:
- Store all URLs in database
- Compare with previous crawl
- Generate change report (new, modified, deleted)
- Track SEO metrics over time
2. Resume Interrupted Crawls
Large crawls can be resumed:
3. SEO Analysis
Analyze pages for SEO issues:
Reports include:
- Missing title/meta descriptions
- Duplicate content
- Broken links
- Page load times
- Mobile optimization
- Structured data
4. JavaScript Rendering
For SPAs (React, Vue, Angular):
5. Scheduled Crawling
Setup automated crawls:
6. Webhooks
Get notified of events:
Webhook payload:
7. Proxy Support
Use proxies for crawling:
Proxy file format:
8. Smart Filtering
Control what gets crawled:
๐ป Programmatic Usage
Basic Example
With Database & Change Detection
With SEO Analysis
With Caching
โ๏ธ Configuration
Configuration File
Create sitemap.config.php:
Use config file:
๐ Examples
The examples/ directory contains ready-to-use code examples:
Basic Example (examples/basic.php)
Simple sitemap generation with minimal configuration:
Advanced Example (examples/advanced.php)
Includes caching, filtering, and rate limiting.
Comprehensive Example (examples/comprehensive.php)
Full-featured example demonstrating all capabilities:
- Database storage with change detection
- SEO analysis and quality checks
- Performance metrics
- Webhook notifications
- Image sitemap generation
- Resume capability
Run the comprehensive example:
๐ API Reference
Core Classes
| Class | Description |
|---|---|
Fetcher |
HTTP client with concurrent request support |
Crawler |
Web crawler with depth and page limits |
Parser |
HTML parser for link extraction |
RobotsTxt |
Robots.txt parser with wildcard support |
SitemapWriter |
XML sitemap generator with gzip compression |
Utils |
Utility functions (URL handling, formatting) |
Advanced Classes
| Class | Description |
|---|---|
Database |
SQLite/MySQL/PostgreSQL storage |
ChangeDetector |
Detect URL changes between crawls |
SeoAnalyzer |
Page-level SEO analysis |
ContentQualityChecker |
Find duplicates, broken links, thin content |
UrlFilter |
Include/exclude patterns with priority rules |
FileCache / RedisCache |
Caching implementations |
RateLimiter |
Request throttling |
CrawlCheckpoint |
Resume interrupted crawls |
WebhookNotifier |
Event notifications |
ProxyManager |
Proxy rotation support |
PerformanceMetrics |
Crawl statistics and reporting |
Sitemap Writers
| Class | Description |
|---|---|
SitemapWriter |
Standard XML sitemap |
ImageSitemapWriter |
Image sitemap with title/caption |
VideoSitemapWriter |
Video sitemap with metadata |
NewsSitemapWriter |
News sitemap for Google News |
๐งช Testing
๐ณ Docker
๐ Performance Tips
-
Increase Concurrency: For faster crawling
-
Enable Caching: Reduce duplicate requests
-
Use Database: Track changes efficiently
-
Smart Filtering: Reduce unnecessary pages
- Resume Support: Handle large sites
๐ง Troubleshooting
Common Issues
1. Memory Exhausted Error
2. Too Many Open Connections
3. Crawl Takes Too Long
4. Rate Limited by Server
5. JavaScript-rendered Content Not Captured
6. SSL Certificate Errors
Debug Mode
Enable verbose output for debugging:
Logs
When using database storage, check crawl history:
๐ Security
- Path traversal prevention
- URL validation and sanitization
- Safe XML generation
- Proxy authentication support
- Rate limiting to prevent blocking
๐ License
MIT License - see LICENSE.md
๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
composer check) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
๐ Credits
Created by iProDev (Hemn Chawroka) - https://github.com/iprodev
๐ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
Made with โค๏ธ by iProDev (Hemn Chawroka)
All versions of sitemap-generator-pro with dependencies
ext-curl Version *
ext-xml Version *
ext-mbstring Version *
ext-zlib Version *
ext-pdo Version *
guzzlehttp/guzzle Version ^7.8
psr/log Version ^1.1 || ^2.0 || ^3.0