PHPackages                             popsy/laravel-site-map - 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. popsy/laravel-site-map

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

popsy/laravel-site-map
======================

A popsy/site-map wrapper for Laravel

03PHP

Since Sep 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/popsycode/laravel-site-map)[ Packagist](https://packagist.org/packages/popsy/laravel-site-map)[ RSS](/packages/popsy-laravel-site-map/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sitemap wrapper for Laravel
---------------------------

[](#sitemap-wrapper-for-laravel)

### Laravel wrapper for [Sitemap package](https://github.com/popsycode/test-site-map)

[](#laravel-wrapper-for-sitemap-package)

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

[](#installation)

Require this package in your composer.json and update composer.

```
composer require popsy/laravel-site-map

```

Add provider to config/app.php

```
Popsy\LaravelSiteMap\SitemapServiceProvider::class,
```

You can add alias for Sitemap Facade to config/app.php

```
'Sitemap' => Popsy\LaravelSiteMap\Facade\Sitemap::class,
```

You can publish configuration file

```
php artisan vendor:publish --provider="Popsy\LaravelSiteMap\SitemapServiceProvider"

```

Usage
-----

[](#usage)

Use this data format:

```
$data = [
    [
        'loc' =>"https://site.ru/",
        'lastmod' =>"2020-12-14",
        'priority' =>1,
        'changefreq' =>"hourly"
    ],
    [
        'loc' =>"https://site.ru/news",
        'lastmod' =>"2020-12-10",
        'priority' =>0.5,
        'changefreq' =>"daily"
    ],
    // .....
];
```

For example

```
use Popsy\LaravelSiteMap\Facade\Sitemap;

Sitemap::setType('json')
    ->setData($data)
    ->setFilePath(public_path('sitemap.json'))
    ->generate();
```

or

```
public function handle(IGenerator $generator)
{
    $data = [/*....*/];
    $generator
        ->setData($data)
        ->setFilePath(public_path('sitemap.xml'))
        ->generate();
}
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/54161566dbf1f2fb7f4ff5354f144e26e824511001be10d827c387e7fa31f027?d=identicon)[popsy](/maintainers/popsy)

---

Top Contributors

[![popsycode](https://avatars.githubusercontent.com/u/8296150?v=4)](https://github.com/popsycode "popsycode (4 commits)")

### Embed Badge

![Health badge](/badges/popsy-laravel-site-map/health.svg)

```
[![Health](https://phpackages.com/badges/popsy-laravel-site-map/health.svg)](https://phpackages.com/packages/popsy-laravel-site-map)
```

PHPackages © 2026

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