Download the PHP package coderden/sitemap-generator without Composer
On this page you can find all versions of the php package coderden/sitemap-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download coderden/sitemap-generator
More information about coderden/sitemap-generator
Files in coderden/sitemap-generator
Download coderden/sitemap-generator
More information about coderden/sitemap-generator
Files in coderden/sitemap-generator
Vendor coderden
Package sitemap-generator
Short Description Sitemap generator with multi-file support and sitemap index
License MIT
Package sitemap-generator
Short Description Sitemap generator with multi-file support and sitemap index
License MIT
Please rate this library. Is it a good library?
Informations about the package sitemap-generator
Sitemap Generator
A lightweight, framework-agnostic PHP package for generating sitemaps with multi-file support and sitemap index generation.
Features
- ✅ Generate single or multiple sitemap files
- ✅ Automatic sitemap index creation for large sites
- ✅ Create sitemaps from arrays or objects
- ✅ Framework-agnostic (works with any PHP project)
- ✅ No external dependencies
- ✅ URL validation and sanitization
- ✅ Configurable URL limits per file
- ✅ Support for all sitemap attributes (priority, changefreq, lastmod)
Installation
Requirements
- PHP 8.1 or higher
- SimpleXML extension
- DOM extension
- libxml extension
Quick Start
Basic Usage
Generate from Array
Advanced Usage
Multi-File Sitemap with Index
When you have more URLs than the specified limit, the package automatically splits them into multiple files and creates a sitemap index:
Sitemap Index Generator (Manual)
For more control over sitemap index creation:
Configuration Options
| Option | Description | Default |
|---|---|---|
maxUrlsPerFile |
Maximum URLs per sitemap file | 50000 |
fileNamePrefix |
Prefix for generated sitemap files | sitemap |
outputDirectory |
Directory to save sitemap files | Required |
baseUrl |
Base URL for sitemap links | Required |
Integration Examples
With Laravel (Optional)
With WordPress
Error Handling
All versions of sitemap-generator with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-simplexml Version *
ext-dom Version *
ext-libxml Version *
ext-simplexml Version *
ext-dom Version *
ext-libxml Version *
The package coderden/sitemap-generator contains the following files
Loading the files please wait ...