PHPackages                             samsonos/cms\_api - 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. [API Development](/categories/api)
4. /
5. samsonos/cms\_api

ActiveLibrary[API Development](/categories/api)

samsonos/cms\_api
=================

SamsonCMS API module

1.0.1(10y ago)24.0k7[3 issues](https://github.com/samsonos/cms_api/issues)1Open Software License (OSL) v 3.0PHP

Since Jul 21Pushed 10y ago2 watchersCompare

[ Source](https://github.com/samsonos/cms_api)[ Packagist](https://packagist.org/packages/samsonos/cms_api)[ Docs](http://samsonos.com/)[ RSS](/packages/samsonos-cms-api/feed)WikiDiscussions master Synced 4d ago

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

\#SamsonCMS API

[![Latest Stable Version](https://camo.githubusercontent.com/4777779861d88f256968c777f2a274d5eb3ecace84ec1fb5bbcd046019b26e2c/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6f732f636d735f6170692f762f737461626c652e737667)](https://packagist.org/packages/samsonos/cms_api)[![Build Status](https://camo.githubusercontent.com/e25fbc01ef44544bcdc91ec660830b2bfa3412800bc1f2ab35aaefcfb84d324e/68747470733a2f2f7472617669732d63692e6f72672f73616d736f6e6f732f636d735f6170692e706e67)](https://travis-ci.org/samsonos/cms_api)[![Coverage Status](https://camo.githubusercontent.com/af182b76f5909c24dfbb209bb34757b015047fe7a53b839083f25f8d96455501/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f73616d736f6e6f732f636d735f6170692e737667)](https://coveralls.io/r/samsonos/cms_api?branch=master)[![Code Climate](https://camo.githubusercontent.com/4ef87c0464a5829dcc8bbc31dfdeaecabb181b8e4480fddb0ce40c03a2566c71/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f73616d736f6e6f732f636d735f6170692f6261646765732f6770612e737667)](https://codeclimate.com/github/samsonos/cms_api)[![Total Downloads](https://camo.githubusercontent.com/636aad52ed95cd6f7af83178e4560a7dedc52ed3e522ac6d025e003ab7ac6075/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6f732f636d735f6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/samsonos/cms_api)

> This is core classes to interact with SamsonCMS database structure

Read module documentation:

- [Material collection](https://github.com/samsonos/cms_api/blob/master/docs/MaterialCollection.md)

Class Filter
============

[](#class-filter)

This class has static methods to work with `filter` table. They are:

- createFilter() method allows you to create new row in `filter` table;
- resetFilters() method generates new filters from `materialfield` table. It takes only records which have filter type. Filter type can de set by CMS or directly in `field` table.

Also it has inner collection of 'filter' class objects and some methods to work with them.

- Method add() takes filter identifier as parameter and adds this filter to the collection.
- getFiltersByField() method has 1 input value: filtered field identifier. It returns array of filters related to this field.
- performFilters() method searches for suitable results, performing all filters which are in collection. The result is array of materials, it can be get by setting first parameter of this function. Other parameters are:
    - Structures which result materials should belong to;
    - External handler name. It will be called before SQL query will execute.
    - External handler parameters array, this parameters will be added to query, which is first parameter of external handler function, and filters array, which is second parameter. That's the main info about this class!

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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

Unknown

Total

1

Last Release

3952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0be8756efdc8f599b8fe9261bed31570d0f140a3b921f0f891877a9133ad654c?d=identicon)[samsonos](/maintainers/samsonos)

---

Top Contributors

[![vitalyiegorov](https://avatars.githubusercontent.com/u/586558?v=4)](https://github.com/vitalyiegorov "vitalyiegorov (311 commits)")[![omaximus](https://avatars.githubusercontent.com/u/8122734?v=4)](https://github.com/omaximus "omaximus (34 commits)")[![onysko](https://avatars.githubusercontent.com/u/7703953?v=4)](https://github.com/onysko "onysko (25 commits)")[![nik-os](https://avatars.githubusercontent.com/u/7326967?v=4)](https://github.com/nik-os "nik-os (23 commits)")[![I70l0teN4ik](https://avatars.githubusercontent.com/u/10940475?v=4)](https://github.com/I70l0teN4ik "I70l0teN4ik (7 commits)")[![rmolodyko](https://avatars.githubusercontent.com/u/4399482?v=4)](https://github.com/rmolodyko "rmolodyko (6 commits)")[![AlexSt2501](https://avatars.githubusercontent.com/u/3685275?v=4)](https://github.com/AlexSt2501 "AlexSt2501 (1 commits)")[![getmanenko](https://avatars.githubusercontent.com/u/14871360?v=4)](https://github.com/getmanenko "getmanenko (1 commits)")[![anazarenko](https://avatars.githubusercontent.com/u/8631316?v=4)](https://github.com/anazarenko "anazarenko (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/samsonos-cms-api/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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