develop-carhelper/laravel-sitemap
Generate sitemaps with ease (spatie/laravel-sitemap FORK)
Installation
First, install the package via composer:
composer require develop-carhelper/laravel-sitemap
Next up: installing the service provider
// config/app.php
'providers' => [
...
Carhelper\Sitemap\SitemapServiceProvider::class,
];
Manually creating a sitemap
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);
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.2.5 | ^7.0 | ~5.3.0| | MIT | |
| 2.2.4 | ^7.0 | ~5.3.0| | MIT | |
| 2.2.3 | ^7.0 | ~5.3.0| | MIT | |
| 2.2.2 | ^7.0 | ~5.3.0| | MIT | |
| 2.2.1 | ^7.0 | ~5.3.0| | MIT | |
| 2.2.0 | ^7.0 | ~5.3.0| | MIT | |
| 2.1.2 | ^7.0 | ~5.3.0| | MIT | |
| 2.1.1 | ^7.0 | ~5.3.0| | MIT | |
| 2.1.0 | ^7.0 | ~5.3.0| | MIT | |
| 2.0.0 | ^7.0 | ~5.3.0 | MIT | |
| 1.1.0 | ^7.0 | ~5.3.0| | MIT | |
| 1.0.1 | ^7.0 | ~5.3.0 | MIT | |
| 1.0.0 | ^7.0 | ~5.3.0 | MIT | |
| 0.0.1 | ^7.0 | ^5.2 | MIT |