A Laravel package to create simple sitemaps
lucacri/laravelsimplesitemap is a Laravel package for a laravel package to create simple sitemaps.
It currently has 0 GitHub stars and 1.756 downloads on Packagist (latest version 3.0.0).
Install it with composer require lucacri/laravelsimplesitemap.
Discover more Laravel packages by lucacri
or browse all Laravel packages to compare alternatives.
Last updated
A very simple package to create sitemaps from specific URLs
You can install the package via composer:
composer require lucacri/laravelsimplesitemap
You can publish and run the migrations with:
php artisan vendor:publish --tag="laravelsimplesitemap-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="laravelsimplesitemap-config"
This is the contents of the published config file:
return [
/*
* Storage disk and path where to save the sitemap
*
*/
'save' => [
'disk' => 'public',
'path' => 'sitemap.xml'
],
/*
* The URL where your sitemap will be accessible.
* This value will be used to inform Google of the changed sitemap
*
*/
'sitemap_url' => 'http://example.com/sitemap.xml',
/*
* An array of URLs to include in the sitemap
* Example:
* [
'loc' => 'https://example.com',
'changefreq' => 'weekly',
'priority' => 0.9
]
*/
'urls' => [
// example
[
'loc' => 'https://example.com',
'changefreq' => 'weekly',
'priority' => 0.9
]
]
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravelsimplesitemap-views"
php artisan simplesitemap:create --ping-google
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.