PHPackages                             zardima0/lib - 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. zardima0/lib

ActiveLibrary

zardima0/lib
============

v1.0.2(3y ago)014PHP

Since Sep 27Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Генератор Sitemap
=================

[](#генератор-sitemap)

О библиотеке
------------

[](#о-библиотеке)

Будет создаваться sitemap в той директории которую указать, если там уже есть файл с именем sitemap, то он его перезапишет.

Ограничение 50 тысяч ссылок.

Как запустить
-------------

[](#как-запустить)

```
composer require zardima0/lib

```

```
//index.php

require_once $_SERVER['DOCUMENT_ROOT'] . './vendor/autoload.php';
use Zardima0\Lib\SitemapGenerator;

//Первый параметр принимает массив вида
$array = [
    [
        'loc' => 'https://site.ru/',
        'lastmod' => '2020-12-14',
        'priority' => 1,
        'changefreq' => 'hourly',
    ],
];

// Типы которые можно создать xml,csv, json;
$type = 'xml';

//Путь куда нужно сохранить, если такой директории нет, то она создается;
$path = __DIR__ . '/upload/';

new SitemapGenerator($array, $type, $path);

```

Запускается в консоле
---------------------

[](#запускается-в-консоле)

```
php index.php

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~1 days

Total

3

Last Release

1328d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31f7c525b695b1e8249dadc54edffc433c87daccf7d397393f99a2e55d5b3255?d=identicon)[ZarDima0](/maintainers/ZarDima0)

---

Top Contributors

[![ZarDima0](https://avatars.githubusercontent.com/u/74725366?v=4)](https://github.com/ZarDima0 "ZarDima0 (9 commits)")

### Embed Badge

![Health badge](/badges/zardima0-lib/health.svg)

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

PHPackages © 2026

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