Skip to content
Rumen Damyanov edited this page Jul 29, 2025 · 14 revisions

php-sitemap Examples

This directory contains practical examples for using the rumenx/php-sitemap package in various scenarios and frameworks.

📂 Example Files

Basic Examples

Advanced Examples

Specific Use Cases

Performance & Optimization

🚀 Quick Start

Choose an example based on your use case:

  1. New to sitemaps? → Start with basic-usage
  2. Using Laravel/Symfony? → Check framework-integration
  3. Large website? → See large-scale-sitemaps and sitemap-index
  4. E-commerce site? → Go to e-commerce
  5. News website? → Start with google-news

📋 Requirements

All examples assume you have:

# Installed the package
composer require rumenx/php-sitemap

# PHP 8.2+
php --version

🔗 Additional Resources


💡 Tip: Each example file is self-contained and includes complete working code that you can copy and adapt for your project.

Clone this wiki locally