PHPackages                             egvolkvolk/smg - 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. egvolkvolk/smg

ActiveLibrary

egvolkvolk/smg
==============

Sitemap Generator

08PHP

Since May 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/egvolkvolk/pyrobyte_test)[ Packagist](https://packagist.org/packages/egvolkvolk/smg)[ RSS](/packages/egvolkvolk-smg/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SitemapGenerator on PHP
=======================

[](#sitemapgenerator-on-php)

Hello, tutorial for initializing and using the library to create a sitemap

Initializing
------------

[](#initializing)

- Open your terminal
- For necessary, install composer
 *php composer install*- Install library **SitemapGenerator**
 *php composer require egvolkvolk/smg*- Later, library create needed files as **vendor**, **egvolkvolk**, e.t.c...

Using
-----

[](#using)

- Create new php-file, for example *index.php*
- Add require
 *require 'vendor\\egvolkvolk\\smg\\src\\SitemapGenerator.php';*- Add site data
    - **data** - list of site pages with parameters
        - **loc** - page address
        - **lastmod** - modified date
        - **priortity** - parsing priority
        - **changefreq** - update frequency
    - **datatype** - file type for generation. Could be array
    - **directory** - path to the file to save
- Add this code
```
    $sitemapGenerator = new SitemapGenerator();
    foreach ($dataTypes as $dataType) {
        $sitemapGenerator->convertToDataType($data, $dataType, $directory);
    }

```

### My executable php-file

[](#my-executable-php-file)

```

        https://pyrobyte.ru/
        2024-05-05
        0.9
        weekly

        https://pyrobyte.ru/cases
        2024-04-03
        0.5
        monthly

        https://pyrobyte.ru/career
        2024-02-24
        0.3
        yearly

        https://pyrobyte.ru/blog
        2024-05-07
        0.7
        daily

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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/349e3b74dcc10591ac0c53d559f6dc8161041b26b0bdc5209de4de1dc4b4ef5a?d=identicon)[egvolkvolk](/maintainers/egvolkvolk)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/egvolkvolk-smg/health.svg)

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

PHPackages © 2026

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