PHPackages                             major/sitemapgenerator - 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. major/sitemapgenerator

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

major/sitemapgenerator
======================

Sitemap generator as test task for pyrobyte

06PHP

Since Jun 29Pushed 10mo agoCompare

[ Source](https://github.com/BoomBot1/sitemap_generator)[ Packagist](https://packagist.org/packages/major/sitemapgenerator)[ RSS](/packages/major-sitemapgenerator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Using:
======

[](#using)

- Init SiteMapGenerator class via passing argumets (documented). Use generate() function from object (SiteMapGenerator).

If u need to add extensions or manipulate data validation\\data formatting:
===========================================================================

[](#if-u-need-to-add-extensions-or-manipulate-data-validationdata-formatting)

src/Support/ DataHandler.php:
-----------------------------

[](#srcsupport-datahandlerphp)

- Validation and formatting data.

src/Support ChangeFreqType.php:
-------------------------------

[](#srcsupport-changefreqtypephp)

- Strings for "changefreq" attribute.

src/Format/ GeneratorInterface.php:
-----------------------------------

[](#srcformat-generatorinterfacephp)

- Interface u need to implement from in your GeneratorClass.

src/Format/ FormatType.php:
---------------------------

[](#srcformat-formattypephp)

- Add your extension and GeneratorClass after creating the new Gen class.

Exceptions:
===========

[](#exceptions)

- DataFieldsValidationException: Throws when fields (keys) in data array didn't match predefined fields.
- DataValidationException: Throws when some data didn't match predefined rules.
- DirectoryException: Throws when package can't create directory.
- FileException: Throws when package can't create\\open file in output path.
- FormatToFileException: Throws when $formatType didn't match file's extension in $outputPath
- FormatValidationException: Throws when passed $formatType didn't match any predefined formats (CSV, JSON, XML)

Requires:
=========

[](#requires)

- PHP: &gt;= 8.3
- XmlWriter

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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/f38be8244d0ce7d915fe8c368d355a4714ea52fda3a2358778002688a9cfa1e0?d=identicon)[major](/maintainers/major)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/major-sitemapgenerator/health.svg)

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

PHPackages © 2026

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