PHPackages                             haggag/laravel-sitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. haggag/laravel-sitemap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

haggag/laravel-sitemap
======================

A simple website crawler &amp; sitemap generator without a headless browser for Laravel 5.8+

2.0.0(2y ago)03MITPHPPHP ^7.3|^8.0|^8.1|^8.2

Since Apr 14Pushed 2y agoCompare

[ Source](https://github.com/MahmoudSaidHaggag/laravel-sitemap)[ Packagist](https://packagist.org/packages/haggag/laravel-sitemap)[ Docs](https://bringyourownideas.com/blog/simple-laravel-sitemap-generator)[ Fund](https://www.buymeacoffee.com/spekulatius)[ GitHub Sponsors](https://github.com/spekulatius)[ RSS](/packages/haggag-laravel-sitemap/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

[Laravel Sitemap Generator](https://github.com/bringyourownideas/laravel-sitemap)
=================================================================================

[](#laravel-sitemap-generator)

[![Latest Stable Version](https://camo.githubusercontent.com/11d8389ae0b5929c15c35d9ba976f0791aa2fa5f2af6fd3f0c9553b35e095ffa/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f6c61726176656c2d736974656d61702f76657273696f6e2e737667)](https://github.com/bringyourownideas/laravel-sitemap/releases) [![Latest Unstable Version](https://camo.githubusercontent.com/b9e0ead2271b2198c572d74f1d0f94b21775ed680c38f8adbd0ca09927dc98d4/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f6c61726176656c2d736974656d61702f762f756e737461626c652e737667)](https://packagist.org/packages/bringyourownideas/laravel-sitemap) [![Total Downloads](https://camo.githubusercontent.com/1ccae89cddc33761bb32a5ec9ac4c6997aa99910e8473447f3258c26734fa2dc/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f6c61726176656c2d736974656d61702f646f776e6c6f6164732e737667)](https://packagist.org/packages/bringyourownideas/laravel-sitemap) [![License](https://camo.githubusercontent.com/4bb25b9d844e0861f4b700152518fa72d233b0c79a373fc891b89fa6b1786712/68747470733a2f2f706f7365722e707567782e6f72672f6272696e67796f75726f776e69646561732f6c61726176656c2d736974656d61702f6c6963656e73652e737667)](https://github.com/bringyourownideas/laravel-sitemap/blob/master/LICENSE)

A simple website crawler using [php-spider](https://github.com/mvdbos/php-spider) and SimpleXMLElement to generate a sitemap.xml-file. The file will be stored in the `public/`-directory. It is commonly used with the [SEO-friendly CommonMark Blog Package](https://github.com/spekulatius/laravel-commonmark-blog) at [bring your own ideas](https://bringyourownideas.com).

The sitemap generator is using the meta tag `article:modified_time` to identify the last modification. `Noindex` in robots meta-tag will be considered and the page will be left out. If a canoncial URL is set in the document, this one will be used instead. Priorities are guessed based on the depth of the page in the website.

Why a Sitemap.xml?
------------------

[](#why-a-sitemapxml)

Sitemaps are crawled by several search engines in the aim to identify changed pages on a website quicker and reduce crawling effort. While a sitemap technically isn't required, it can greatly support your efforts to [rank higher](https://github.com/Awesome-SEO).

Support
-------

[](#support)

This package supports Laravel 6-9.

Installation
------------

[](#installation)

The package is managed using composer. You can install it using:

```
composer require bringyourownideas/laravel-sitemap
```

This ensures you receiving later updates automatically. Alternatively, you can install the package manually (not recommended) using the download functionality on GitHub.

Usage
-----

[](#usage)

The package registers a artisan command called `sitemap:generate`. This triggers a crawl of your site and writing out of the sitemap. For convenience, you can add this to your deployment steps.

### Regular Updates of the sitemap

[](#regular-updates-of-the-sitemap)

If you'd like to update the sitemap.xml regularly, you can add a new line in `app/Console/Kernel.php`, in the schedule function:

```
/**
 * Define the application's command schedule.
 *
 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule->command('sitemap:generate')->daily();

    // ...or with a defined time...

    $schedule->command('sitemap:generate')->daily()->at('02:50');
}
```

MISC: [Future ideas/development, issues](https://github.com/bringyourownideas/laravel-sitemap/issues), [Contributing](https://github.com/bringyourownideas/laravel-sitemap/blob/master/CONTRIBUTING), [License](https://github.com/bringyourownideas/laravel-sitemap/blob/master/LICENSE)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#misc-future-ideasdevelopment-issues-contributing-license)

This package was developed by [Peter Thaleikis](https://github.com/spekulatius) and is supported by [bring your own ideas Ltd.](https://bringyourownideas.com). Bring Your Own Ideas Ltd. helps you to make your project ideas to reality! Get in touch to discuss your new adventure!

[![bring your own ideas](https://camo.githubusercontent.com/8a9e929f2185ff4a6473681da09630159a4143d54aadd6d1960812aa7d5687d5/68747470733a2f2f6272696e67796f75726f776e69646561732e636f6d2f696d616765732f62796f692d6c696768742d62756c622d7472616e73706172656e742d6261636b67726f756e642e706e67)](https://bringyourownideas.com)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

810d ago

Major Versions

1.0.0 → 2.0.02024-04-14

PHP version history (2 changes)1.0.0PHP ^7.3|^8.0

2.0.0PHP ^7.3|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8878cb195a9c7ab67015ad3df7ecadefad07ec8ccb33992abd038d296298fd0?d=identicon)[haggag](/maintainers/haggag)

---

Top Contributors

[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (28 commits)")[![mahmoudhaggag641](https://avatars.githubusercontent.com/u/17066788?v=4)](https://github.com/mahmoudhaggag641 "mahmoudhaggag641 (2 commits)")[![DmitrySidorenkoShim](https://avatars.githubusercontent.com/u/8822805?v=4)](https://github.com/DmitrySidorenkoShim "DmitrySidorenkoShim (1 commits)")

---

Tags

laravellaravel-sitemapsitemap-generatorsitemap.xmlsite crawler

### Embed Badge

![Health badge](/badges/haggag-laravel-sitemap/health.svg)

```
[![Health](https://phpackages.com/badges/haggag-laravel-sitemap/health.svg)](https://phpackages.com/packages/haggag-laravel-sitemap)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M222](/packages/backpack-crud)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
