Package Data | |
---|---|
Maintainer Username: | hettiger |
Maintainer Contact: | martin@hettiger.com (Martin Hettiger) |
Package Create Date: | 2014-02-08 |
Package Last Update: | 2014-06-28 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-23 03:16:54 |
Package Statistics | |
---|---|
Total Downloads: | 369 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 30 |
Total Watchers: | 4 |
Total Forks: | 5 |
Total Open Issues: | 1 |
Generate sitemap.xml and robots.txt files in Laravel or any PHP Application with ease.
This package allows you throwing Eloquent Models at it in order to generate sitemap.xml + robots.txt files. It is mainly desired for use with Laravel 4. Anyways it's developed with the whole PHP Community in mind.
$collection = Pages::all();
Sitemap::addCollection($collection, 'url-prefix');
return Response::make(Sitemap::getSitemapXml())
->header('Content-Type', 'text/xml');
The Documentation can be found here.
If you have any Problems with the Documentation please open an Issue.
// composer.json
"require": {
"php": ">=5.4.0",
"hettiger/seo-aggregator": "1.1.*",
// ...
},
An Update is always considered safe on changes regarding the last digit of the Version Number. Never update when the first or second digit has changed without looking into the Release Notes.
| Versions | Laravel compatibility | PHP compatibility | | -------- | --------------------- | ----------------- | | 1.1.* | Laravel 4.2 | HHVM, 5.4+ | | 1.0.* | Laravel 4.1 | 5.3+ | | 0.*.* | Laravel 4.1 | 5.3+ |
SEO Aggregator is open-sourced software licensed under the MIT license