PHPackages                             a3020/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. a3020/laravel-sitemap

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

a3020/laravel-sitemap
=====================

Retrieves, validates, and parses remote sitemap documents

1.0.1(8y ago)124MITPHPPHP ^7.1

Since Oct 10Pushed 8y agoCompare

[ Source](https://github.com/a3020/laravel-sitemap)[ Packagist](https://packagist.org/packages/a3020/laravel-sitemap)[ RSS](/packages/a3020-laravel-sitemap/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Retrieves, validates, and parses remote sitemap documents
=========================================================

[](#retrieves-validates-and-parses-remote-sitemap-documents)

[![Build Status](https://camo.githubusercontent.com/b0b71fad855417b1415c63b152c03ba4c373af92c3b9e08c6fb16daf44437a9c/68747470733a2f2f7472617669732d63692e6f72672f61333032302f6c61726176656c2d736974656d61702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/a3020/laravel-sitemap)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)

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

[](#installation)

```
composer require a3020/laravel-sitemap
```

Usage
-----

[](#usage)

Retrieve urls from a single sitemap

```
$client = $app->make('sitemap.client');
$urls = $client->get(['https://somedomain.com/sitemap.xml']);
```

Retrieve urls from sitemaps + sitemaps from robots.txt

```
$client = $app->make('sitemap.client');
$urls = $client->get(['https://somedomain.com/sitemap.xml'], 'https://somedomain.com/robots.txt');
```

Validate a sitemap

```
$validator = $app->make('sitemap.validator');
$validator->validate($contents);
```

Parse a sitemap

```
$parser = $app->make('sitemap.parser');

// Return URLs found in sitemap document
$parser->urls($contents);

// Filter to only get portfolio URLs.
$parser->filterUrlsByRegexes($contents, ['/portfolio']);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~58 days

Total

4

Last Release

2963d ago

Major Versions

0.0.2 → 1.02018-04-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1431100?v=4)[a3020](/maintainers/a3020)[@a3020](https://github.com/a3020)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9738.8k](/packages/sauladam-shipment-tracker)

PHPackages © 2026

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