PHPackages                             yuramyasnikov/sitemap-generator - 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. yuramyasnikov/sitemap-generator

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

yuramyasnikov/sitemap-generator
===============================

v1.0.0(1y ago)05MITPHPPHP ^8.1

Since Feb 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yuramyasnikov/sitemap-generator)[ Packagist](https://packagist.org/packages/yuramyasnikov/sitemap-generator)[ RSS](/packages/yuramyasnikov-sitemap-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Для для использования библиотеки в своем проекте нужно выполнить:
-----------------------------------------------------------------

[](#для-для-использования-библиотеки-в-своем-проекте-нужно-выполнить)

```
composer require yuramyasnikov/sitemap-generator
```

#### Пример.

[](#пример)

### Создайте файл index.php с таким содержимым:

[](#создайте-файл-indexphp-с-таким-содержимым)

```
use Yura\SitemapGenerator\ChangeFreqEnum;
use Yura\SitemapGenerator\Page;
use Yura\SitemapGenerator\SiteMapGeneratorFactory;

require_once 'vendor/autoload.php';

// Список страниц
$pages = [
    new Page('http://example.com', new \DateTimeImmutable(), ChangeFreqEnum::Monthly, 1),
    new Page('http://example.com/about', new \DateTimeImmutable(), ChangeFreqEnum::Monthly, 1),
    new Page('http://example.com/contacts'),
];

// Генерируем файл по указаному адресу
SiteMapGeneratorFactory::create('xml')->generate($pages, 'public_html/sitemap.xml');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance43

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c0d075da892ff94674fd270a41e4bb4c5c76b828c20a2f8deb337a0dff9b84a?d=identicon)[Yuriy Myasnikov](/maintainers/Yuriy%20Myasnikov)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yuramyasnikov-sitemap-generator/health.svg)

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

###  Alternatives

[kriswallsmith/assetic

Asset Management for PHP

3.7k48.9M161](/packages/kriswallsmith-assetic)[laracasts/cypress

Laravel Cypress Boilerplate

6273.2M4](/packages/laracasts-cypress)[talyssonoc/react-laravel

Package to use ReactJS with Laravel

8944.9k](/packages/talyssonoc-react-laravel)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[emcconville/point-reduction-algorithms

A collection of algorithms for reducing the number of points in polyline

61196.1k1](/packages/emcconville-point-reduction-algorithms)[heyday/silverstripe-menumanager

Allows complex menu management to be handled through the CMS when a simple tree structure is not enough.

36304.4k7](/packages/heyday-silverstripe-menumanager)

PHPackages © 2026

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