PHPackages                             scopefragger/mappy - 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. scopefragger/mappy

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

scopefragger/mappy
==================

4262PHP

Since Jun 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/scopefragger/Mappy)[ Packagist](https://packagist.org/packages/scopefragger/mappy)[ RSS](/packages/scopefragger-mappy/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (2)Used By (0)

[![Codacy Badge](https://camo.githubusercontent.com/d48a17385136ff9caa278ff234cab9aa210700592c4d8fdd7fdd4694855cb60a/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3237313032633863626366353432633261613162376139363966666136646233)](https://www.codacy.com/app/m-jones/Mappy?utm_source=github.com&utm_medium=referral&utm_content=scopefragger/Mappy&utm_campaign=Badge_Grade)[![GitHub issues](https://camo.githubusercontent.com/696b69f83620c92e740e774b3bb0c935cab02226aba05a3345043ad42abd3403/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73636f7065667261676765722f4d617070792e737667)](https://github.com/scopefragger/Mappy/issues)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/scopefragger/Mappy/master/LICENSE)

Mappy - Laravel Site Map Generator
==================================

[](#mappy---laravel-site-map-generator)

Mappy is a PHP 5.6 + library for Laravel 5+ that generates a sitemap in the background while users utilise the site

The site map will be generated at

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

[](#installation)

1. The preferred method of installation is via [Packagist](https://packagist.org/packages/scopefragger/mappy) and [Composer](http://getcomposer.org/). Run the following command to install the package and add it as a requirement to your project's `composer.json`:

    ```
    composer require scopefragger/mappy
    ```

- Add the following to your config/app.php

    ```
    Scopefragger\Mappy\MappyServiceProvider::class
    ```
- Add the following to any middlware you wish to be tracked ( App/Http/Kernel.php ), Typicaly you want this to be your web group

    ```
    \Scopefragger\Mappy\Middleware\MappyMiddleware::class
    ```
- You must then publish a copy ofthe config to your application ( run the following ! ) a new config file ` config/mappy.php` wil be created

    ```
    php artisan vendor:publish --tag=mappy --force
    ```
- Finaly, run migrations to build the `mappy_urls` table
- For this package, no facade is required

Config
------

[](#config)

As with most Laravel packages, Mappy has the abuilty to define some options

1. Blacklist | `Array`This option allows you to stop Mappy from listing routes that start with key words or strings such as `admin` or `login`, typicaly used for directorys that will 404 / 500 for users who are not logged in or for directorys that it may be un desirable to allow Google to find.

    ```
    'blacklist' => [
         '/admin',
         '/my-account'
    ],
    ```
2. Strip | `String`Usefull when running development or staging enviroments, Allows you to specify parts of a URL such as `/public/www/yoursite/ that may be part of a sites URL while in development

    ```
    'strip' => '/blog/public',
    ```
3. Enable | `Bool`Usefull for quickly tuning off the package. False will disable the package

    ```
    'enable' => 'true',
    ```
4. Domain | `String`The domain you wish to be recorded and used when generating the .XML like `Strip` this is usefull for when your running in a dev or staging enviroment

    ```
    'domain' => 'http://example.com',
    ```

Requirements
------------

[](#requirements)

- PHP 5.6
- LARAVEL 5.1+
- Mysql / Sqlite or any other DB that has a valid Laravel driver

Final Comments
--------------

[](#final-comments)

This Package was created to solve a problem, it has helped in anyway feel free to link back, give a star or recomend the package to others.

If by anychance you find a bug or can reccomend a feature, feel free to log a bug or raise a ticket in the issue tracker

Copyright and license
---------------------

[](#copyright-and-license)

MIT License

Copyright (c) 2017 Mark Anthony Jones

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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://avatars.githubusercontent.com/u/1904112?v=4)[Mark A Jones](/maintainers/scopefragger)[@scopefragger](https://github.com/scopefragger)

---

Top Contributors

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

---

Tags

laravelphpsitemap-generator

### Embed Badge

![Health badge](/badges/scopefragger-mappy/health.svg)

```
[![Health](https://phpackages.com/badges/scopefragger-mappy/health.svg)](https://phpackages.com/packages/scopefragger-mappy)
```

###  Alternatives

[boxybird/inertia-wordpress

The WordPress adapter for Inertia.js

1828.0k](/packages/boxybird-inertia-wordpress)[sebwite/magento2-category-sidebar

Magento 2.0 sidebar

617.9k](/packages/sebwite-magento2-category-sidebar)

PHPackages © 2026

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