-
Notifications
You must be signed in to change notification settings - Fork 276
Home
Rumen Damyanov edited this page Jul 29, 2025
·
14 revisions
This directory contains practical examples for using the rumenx/php-sitemap
package in various scenarios and frameworks.
- basic-usage - Simple sitemap generation examples
- framework-integration - Laravel, Symfony, and standalone PHP examples
- rendering-formats - Different output formats (XML, HTML, TXT, etc.)
- dynamic-sitemaps - Database-driven sitemaps with caching
- sitemap-index - Managing multiple sitemaps with sitemap index
- large-scale-sitemaps - Handling millions of URLs efficiently
- rich-content - Images, videos, translations, and Google News
- e-commerce - Product catalogs and categories
- blog-cms - Posts, pages, and content management
- multilingual - Multi-language sites with hreflang
- google-news - News sitemaps for Google News
- caching-strategies - Optimizing sitemap generation
- memory-optimization - Handling large datasets efficiently
- automated-generation - Scheduled and event-driven sitemaps
Choose an example based on your use case:
- New to sitemaps? β Start with basic-usage
- Using Laravel/Symfony? β Check framework-integration
- Large website? β See large-scale-sitemaps and sitemap-index
- E-commerce site? β Go to e-commerce
- News website? β Start with google-news
All examples assume you have:
# Installed the package
composer require rumenx/php-sitemap
# PHP 8.2+
php --version
π‘ Tip: Each example file is self-contained and includes complete working code that you can copy and adapt for your project.