PHP Package: spatie/laravel-sitemap

A PHP library for generating SEO-optimized sitemaps in Laravel applications, helping improve search engine visibility and indexing.

Current Version: 7.3.7
Last Updated: 2025-08-25
PHP Requirement: ^8.2||^8.3||^8.4
Dependencies:
spatie/laravel
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laravel Sitemap by Spatie is a powerful toolkit designed to streamline the process of creating sitemaps in Laravel projects. It offers a comprehensive set of features to manage sitemap generation efficiently and boost SEO performance. With support for dynamic content, custom configurations, and ease of integration, this library simplifies the process of ensuring search engines crawl and index your website effectively.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 7.3.7

Download Download v7.3.7

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/laravel-sitemap/7.3.7/loader.php';
require_once 'libs/spatie/laravel/{lib_version}/loader.php';

use Spatie\LaravelSitemap\Sitemap;

$obj = new Sitemap();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.