{"repo":"spatie/laravel-sitemap","free":true,"listed":false,"github":"https://github.com/spatie/laravel-sitemap","clone":"git clone https://github.com/spatie/laravel-sitemap.git","description":"Create and generate sitemaps with ease","language":"PHP","stars":2618,"topics":["laravel","php","sitemap","google","seo","xml"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Generate sitemaps with ease This package can generate a sitemap without you having to add URLs to it manually. This works by crawling your entire site. You can also create your sitemap manually: Or you can have the best of both worlds by generating a sitemap and then adding more links to it: Splitting a crawl into multiple sitemaps Sometimes you want the crawled URLs grouped into separate sitemap files (for example one for your blog and one for the rest of the site). This makes it easier to track indexing coverage per section in Google Search Console. Pass a closure to writeToFile . It receives each Url and returns the path of the file that URL belongs in. Returning null from the closure leaves that URL out of every sitemap. By default no sitemap index is written. Call sitemapIndexPath to also generate an index that references each written sitemap. When you combine this with maxTagsPerSitemap() , a group that exceeds the limit is split further into numbered files ( sitemap-blog 0.xml , sitemap-blog 1.xml ), each listed in the index. You can also add your models directly by implementing the Sitemapable interface. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-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."}