mikicaivosevic/laravel-sitemap is a Laravel package for create and generate sitemaps with ease.
It currently has 0 GitHub stars and 18 downloads on Packagist (latest version 2.2.3).
Install it with composer require mikicaivosevic/laravel-sitemap.
Discover more Laravel packages by mikicaivosevic
or browse all Laravel packages to compare alternatives.
Last updated
First, install the package via composer:
composer require mikicaivosevic/laravel-sitemap
Next up: installing the service provider
// config/app.php
'providers' => [
...
Mikica\Sitemap\SitemapServiceProvider::class,
];
You can also create a sitemap fully manual:
use Carbon\Carbon;
Sitemap::create()
->add('/page1')
->add('/page2')
->add(Url::create('/page3')->setLastModificationDate(Carbon::create('2016', '1', '1')))
->add(Url::create('/page4')->addXhtmlLink([
'hreflang' => 'de',
'rel' => 'alternate'
'href' => 'http://www.example.com/deutsch/'
]))
->writeToFile($sitemapPath);
The MIT License (MIT). Please see License File for more information.