php-sitemap-generator

PHP Sitemap Generator class creates XML sitemap that can be submitted to Google, Bing, Yandex, and other search engines.

22 articles 4 View on GitHub ↗
22 articles
How SunSitemap Supports Gzip Compression for XML Sitemaps

Discover how SunSitemap uses native zlib functions to automatically create compressed .gz XML sitemap files when createZip is true, offering efficient compression without external dependencies.

feature-explanation
Mar 7, 2026
How to Generate Sitemaps in Memory Without Writing to Disk in PHP

Generate sitemaps in memory with PHP using msbatal/php-sitemap-generator. Learn to capture XML strings internally without writing to disk, saving valuable resources and improving performance.

how-to-guide
Mar 7, 2026
How to Integrate SunSitemap into an Existing PHP Project

Easily integrate SunSitemap into your PHP project to generate XML sitemaps and update robots.txt. This lightweight pure-PHP class requires no external dependencies. Learn how now.

how-to-guide
Mar 7, 2026
Why htmlspecialchars() Is Used for URL Locations in PHP Sitemap Generators

Discover why msbatal/php-sitemap-generator uses htmlspecialchars() for URL locations to prevent injection attacks and ensure sitemap integrity.

best-practices
Mar 7, 2026
SunSitemap Constructor-Level Exception Handling: How the PHP Class Manages Initialization Errors

Discover how SunSitemap handles initialization errors with constructor-level exception handling. Learn about its custom exception handler and validation exceptions.

internals
Mar 7, 2026
How Multiple Sitemap Files Are Named When Auto-Split Occurs in PHP Sitemap Generator

Discover how PHP Sitemap Generator names split sitemap files when auto-splitting occurs. Learn about sequential indexing and the .xml.gz extension for clear organization.

how-to-guide
Mar 7, 2026
Understanding the Changefreq Attribute SEO Impact in PHP Sitemap Generation

Discover the SEO impact of the changefreq attribute in PHP sitemap generation. Optimize crawl budget and indexing freshness by setting content update frequency effectively.

deep-dive
Mar 7, 2026
PHP Version and Extensions Required for SunSitemap: Complete Setup Guide

Discover the required PHP version and extensions for SunSitemap. Learn how to enable SimpleXML and zlib for optimal sitemap generation.

getting-started
Mar 7, 2026
How SunSitemap Handles Relative vs. Absolute Paths for Output

Discover how SunSitemap manages relative vs absolute paths for output. Learn how it synchronizes files and URLs using document root for consistent sitemap generation.

how-to-guide
Mar 7, 2026
PHP Sitemap Generator: Fixing the 1,000 Sitemap Files Limit Error

Fix the 1000 sitemap files limit error in PHP Sitemap Generator. Learn how SunSitemap::createSitemap triggers this issue and resolve it for large projects.

how-to-guide
Mar 7, 2026
How to Track Memory Usage and Execution Duration with SunSitemap

Learn to track memory usage and execution duration with SunSitemap's memoryUsage() and showDuration() methods. Monitor your PHP script's performance efficiently.

how-to-guide
Mar 7, 2026
What Is the 50MB Sitemap File Size Limit in PHP Sitemap Generator and How Is It Enforced?

Understand the 50MB sitemap file size limit in PHP Sitemap Generator. Learn how msbatal/php-sitemap-generator enforces this limit during XML creation to ensure optimal performance and crawler accessibility. Discover the byte va...

faq
Mar 7, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →