{"repo":"dwightwatson/sitemap","free":true,"listed":false,"github":"https://github.com/dwightwatson/sitemap","clone":"git clone https://github.com/dwightwatson/sitemap.git","description":"Google sitemap builder for Laravel","language":"PHP","stars":268,"topics":["laravel","php","sitemap"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Sitemap for Laravel =================== Sitemap is a package built specifically for Laravel that will help you generate XML sitemaps for Google. Based on laravel-sitemap this package operates in a slightly different way to better fit the needs of our project. A facade is used to access the sitemap class and we have added the ability to produce sitemap indexes as well as sitemaps. Furthermore, it's tested. Read more about sitemaps and how to use them efficiently on Google Webmaster Tools. Installation Usage Creating sitemap indexes If you have a large number of links (50,000+) you will want to break your sitemaps out into seperate sitemaps with a sitemap index linking them all. You add sitemap indexes using Sitemap::addSitemap($location, $lastModified) and then you return the sitemap index with Sitemap::renderSitemapIndex() . The $lastModified variable will be parsed and converted to the right format for a sitemap. Here is an example controller that produces a sitemap index. Simply route to this as you usually would, Route::get('sitemap', 'SitemapsController@index'); . Creating sitemaps Similarly to sitemap indexes, you just add tags for each item in your sitemap using Sitemap::addTag($location, $lastModified, $changeFrequency, $priority) . You can return the sitemap with Sitemap::renderSitemap() . Again, the $lastModified variable will be parsed and convered to the right format for the sitemap. If you'd like to just get the raw XML, simply call Sitemap::xml() . Here is an exa","default_branch":null,"files":null,"tree":[],"storefront":"/r/dwightwatson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dwightwatson/sitemap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}