Download the PHP package spatie/laravel-sitemap without Composer
On this page you can find all versions of the php package spatie/laravel-sitemap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/laravel-sitemap
More information about spatie/laravel-sitemap
Files in spatie/laravel-sitemap
Package laravel-sitemap
Short Description Create and generate sitemaps with ease
License MIT
Homepage https://github.com/spatie/laravel-sitemap
Rated 5.00 based on 1 reviews
Informations about the package laravel-sitemap
Generate sitemaps with ease
[](https://packagist.org/packages/spatie/laravel-sitemap) [](LICENSE.md) [](https://github.com/spatie/laravel-sitemap/actions/workflows/run-tests.yml) [](https://github.com/spatie/laravel-sitemap/actions/workflows/fix-php-code-style-issues.yml) [](https://github.com/spatie/laravel-sitemap/actions/workflows/phpstan.yml) [](https://packagist.org/packages/spatie/laravel-sitemap)This package can generate a sitemap without you having to add URLs to it manually. This works by crawling your entire site.
You can also create your sitemap manually:
Or you can have the best of both worlds by generating a sitemap and then adding more links to it:
Splitting a crawl into multiple sitemaps
Sometimes you want the crawled URLs grouped into separate sitemap files (for example one for your blog and one for the rest of the site). This makes it easier to track indexing coverage per section in Google Search Console.
Pass a closure to writeToFile. It receives each Url and returns the path of the file that URL belongs in.
Returning null from the closure leaves that URL out of every sitemap.
By default no sitemap index is written. Call sitemapIndexPath to also generate an index that references each written sitemap.
When you combine this with maxTagsPerSitemap(), a group that exceeds the limit is split further into numbered files (sitemap-blog_0.xml, sitemap-blog_1.xml), each listed in the index.
You can also add your models directly by implementing the Sitemapable interface.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Documentation
All documentation is available on our documentation site.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Credits
- Freek Van der Herten
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-sitemap with dependencies
illuminate/support Version ^12.0|^13.0
nesbot/carbon Version ^2.71|^3.0
spatie/crawler Version ^9.0
spatie/laravel-package-tools Version ^1.16.1
