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

AbandonedArchivedLibrary

fdevs/sitemap
=============

Library for the generate sitemap

0.1.1(9y ago)01051MITPHPPHP &gt;=5.4

Since Jun 16Pushed 9y ago3 watchersCompare

[ Source](https://github.com/4devs/sitemap)[ Packagist](https://packagist.org/packages/fdevs/sitemap)[ Docs](https://github.com/4devs/sitemap)[ RSS](/packages/fdevs-sitemap/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

Status
======

[](#status)

[![Build Status](https://camo.githubusercontent.com/3bec911d8312fc3c3336ac6b20e353c28ec2dde4e18ddb28b7720e2060392790/68747470733a2f2f7472617669732d63692e6f72672f34646576732f736974656d61702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/4devs/sitemap)

Sitemap
=======

[](#sitemap)

use rules [Sitemaps XML format](http://www.sitemaps.org/protocol.html) for the generate sitemap

If you use Symfony 2, you could use our [sitemap bridge](https://github.com/4devs/sitemap-bridge) or [sitemap bundle](https://github.com/4devs/sitemap-bundle)!

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

[](#installation)

Sitemap uses Composer, please checkout the [composer website](http://getcomposer.org) for more information.

The simple following command will install `sitemap` into your project. It also add a new entry in your `composer.json` and update the `composer.lock` as well.

```
composer require fdevs/sitemap
```

Usage examples:
---------------

[](#usage-examples)

### create your adapter

[](#create-your-adapter)

```
http://4devs.io/ru0.7

//or save sitemap
$urlset->saveFile('/full/path/to/sitemap.xml',$params);
```

### usage SiteMapIndex

[](#usage-sitemapindex)

```
use FDevs\Sitemap\Factory\SiteMapIndex;

$index = new SiteMapIndex('http://domain.ltd','/full/path/to/web/dir');

// your params for the uri
$params = [
    ['_locale' => 'ru', '_format' => 'html'],
    ['_locale' => 'en', '_format' => 'html'],
];

echo $index->xmlString($params);
//http://domain.ltd/ru.html.sitemap.xmlhttp://domain.ltd/en.html.sitemap.xml

//or save sitemap
$index->saveFile('/full/path/to/sitemap.xml',$params);
```

### usage Params helper

[](#usage-params-helper)

```
use FDevs\Sitemap\Util\Params;
$params = Params::prepare(['_locale'=>['ru','en'],'_format'=>['html','rss']])
//output
//$params = [
//    ['_locale' => 'ru', '_format' => 'html'],
//    ['_locale' => 'en', '_format' => 'html'],
//    ['_locale' => 'ru', '_format' => 'rss'],
//    ['_locale' => 'en', '_format' => 'rss'],
//];
```

### usage sitemap manager

[](#usage-sitemap-manager)

```
use FDevs\Sitemap\SitemapManager;
use FDevs\Sitemap\Factory\SiteMapIndex;
use FDevs\Sitemap\Factory\UrlSet;
use FDevs\Sitemap\Util\Params;

$index = new SiteMapIndex('http://domain.ltd','/full/path/to/web/dir');
$urlset = new UrlSet();
$params = Params::prepare(['_locale'=>['ru','en'],'_format'=>['html','xml']])

$manager = new SitemapManager();
$manager
    ->add($urlset)
    ->add($index);

$manager->get('index')->xmlString($params);
$manager->get('index')->saveFile('/full/path/to/sitemap.xml',$params);

$manager->get('sitemap')->xmlString($params);
$manager->get('sitemap')->saveFile('/full/path/to/sitemapindex.xml',$params);
```

---

Created by [4devs](http://4devs.pro/) - Check out our [blog](http://4devs.io/) for more insight into this and other open-source projects we release.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

3619d ago

### Community

Maintainers

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

---

Top Contributors

[![vmelnik-ukraine](https://avatars.githubusercontent.com/u/1994051?v=4)](https://github.com/vmelnik-ukraine "vmelnik-ukraine (10 commits)")

---

Tags

Sitemapseo

### Embed Badge

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

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

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[novactive/ezseobundle

Novactive eZ SEO Bundle is an Ibexa Platform bundle for SEO simplications. metas, sitemaps, robots.txt, etc.

26252.0k2](/packages/novactive-ezseobundle)[kphoen/sitemap-bundle

Provides a way to create/generate a sitemap using Doctrine, etc.

2444.8k](/packages/kphoen-sitemap-bundle)[fomvasss/laravel-meta-tags

A package to manage SEO (meta-tags, xml-fields, etc.)

3028.9k](/packages/fomvasss-laravel-meta-tags)[werkspot/sitemap-bundle

Bundle for generating dynamic sitemap.xml content with support for multiple sections

11182.9k](/packages/werkspot-sitemap-bundle)[kphoen/sitemap-generator

Provides a way to create/generate a sitemap using Propel, Doctrine, etc.

1687.8k4](/packages/kphoen-sitemap-generator)

PHPackages © 2026

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