PHPackages                             samsonos/seo\_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. [Utility &amp; Helpers](/categories/utility)
4. /
5. samsonos/seo\_sitemap

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

samsonos/seo\_sitemap
=====================

SamsonPHP module for creating sitemap of web-site

1848PHP

Since Oct 29Pushed 11y ago2 watchersCompare

[ Source](https://github.com/samsonos/seo_sitemap)[ Packagist](https://packagist.org/packages/samsonos/seo_sitemap)[ RSS](/packages/samsonos-seo-sitemap/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\#SamsonPHP module for creating sitemap of web-site for [SamsonPHP](http://samsonphp.com) framework

> Module can automatically create common sitemap or sitemap for different sections (products, categories, etc..) compression using external tools.

Automatic sitemaps generation
-----------------------------

[](#automatic-sitemaps-generation)

For creating sitemap you must visit url `[domain]/sitemapcreate`System will automatically create

- `sitemap.xml` xml file with general sitemap

\###Module Configuration Available two configurable parameters:

- `array $schema` Array, where key is sitemap name and value is array of callback function, which returns array of elements for creating XNL 'url' objects and url prefix. Also value can contain collection of arrays
- `string $imageSchemaHandler` Callback function, which returns collection of images for creating XML

\##Example configuration class for this module:

```
class SitemapConfig extends \samson\core\Config
{
    public $__module = 'sitemapcreate';

    public $schema = array(
        'products' => array(
            array('getSmallProducts', 'small/'),
            array('getBigProducts', 'big/')
        ),
        'companies' => array('getCompaniesForSitemap, 'companies/'),
        'pages' => array('getPagesForSitemap', ''),
    );

    public $imageSchemaHandler = 'getImagesForSitemap';
}
```

External handler example
------------------------

[](#external-handler-example)

In your configuration you must define your callback functions that must return collection of materials (or structures) for creating sitemap. If you have very big collection of data, we recommend to use two parameters for limiting in your function :

- `integer $limitStart` Limit start position
- `boolean & $response` Return true if function must be called again

\###Example using parameters

```
function getBigProducts($limitStart = 0, & $response = false) {
   $query = dbQuery('material')->cond('type', 2)->limit($limitStart*200, 200);
   $count_query = clone $query;

   if ($count_query->count() < 200) {
       $response = false;
   } else {
       $response = true;
   }
   return $query->exec();
}
```

\###Simple using example

```
function getCompaniesForSitemap() {
   return dbQuery('material')->cond('type', 3)->exec();
}
```

Developed by [SamsonOS](http://samsonos.com/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/0be8756efdc8f599b8fe9261bed31570d0f140a3b921f0f891877a9133ad654c?d=identicon)[samsonos](/maintainers/samsonos)

---

Top Contributors

[![onysko](https://avatars.githubusercontent.com/u/7703953?v=4)](https://github.com/onysko "onysko (2 commits)")[![vitalyiegorov](https://avatars.githubusercontent.com/u/586558?v=4)](https://github.com/vitalyiegorov "vitalyiegorov (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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