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