PHPackages                             apertagraffa/sitemapper - 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. apertagraffa/sitemapper

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

apertagraffa/sitemapper
=======================

Ridiculously small package for manual sitemap generation in small websites

v1.1(10y ago)037MITPHP

Since May 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lucamenozzi/sitemapper)[ Packagist](https://packagist.org/packages/apertagraffa/sitemapper)[ Docs](https://github.com/lucamenozzi/sitemapper)[ RSS](/packages/apertagraffa-sitemapper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Manual sitemap generator
========================

[](#manual-sitemap-generator)

> Laravel 5.2 Package to generate hand-write sitemap (only for small websites)

Synopsis
--------

[](#synopsis)

Sitemapper create a static sitemap in real time when requested via /sitemap.xml URI.

Obviously, this package is for small website only: if you have 100 pages, this strategy is wrong.
But for your personal website or for your blog, maybe you could give it a chance.

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

[](#installation)

- add "apertagraffa/sitemapper": "\*" to your composer.json
- create a get route to sitemap.xml: you can both use a callback in the route, but the best approach is to connect a controller method (to SitemapController, for example).

API Reference
-------------

[](#api-reference)

You have only two methods, for now, you can't make mistakes :)

- **$sitemap-&gt;addUrl($location, $lastmod = null, $changefreq = null, $priority = null)** : add a node to xml sitemap tree. **$location** is the needed static url, other parameters are optional;
- **$sitemap-&gt;render()**: create the final sitemap tree.

You can then

```
               ->header('Content-Type', 'text/xml');```

## Behaviour
The real time response works only if NOT EXISTS a physical sitemap.xml file in root.
If it exists, will be returned.

That's all folks!

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

3653d ago

### Community

Maintainers

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

---

Tags

laravelgeneratorSitemap

### Embed Badge

![Health badge](/badges/apertagraffa-sitemapper/health.svg)

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

###  Alternatives

[fomvasss/laravel-meta-tags

A package to manage SEO (meta-tags, xml-fields, etc.)

3028.9k](/packages/fomvasss-laravel-meta-tags)[kphoen/sitemap-generator

Provides a way to create/generate a sitemap using Propel, Doctrine, etc.

1687.8k4](/packages/kphoen-sitemap-generator)[lara-zeus/accordion

Zeus Accordion is filamentphp layout component to group components

11122.8k2](/packages/lara-zeus-accordion)[tomatophp/filament-helpers

Helper Class Generator to manage your forms and table inside your filament app

127.9k](/packages/tomatophp-filament-helpers)

PHPackages © 2026

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