PHPackages                             samsonos/cms\_input - 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/cms\_input

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

samsonos/cms\_input
===================

SamsonCMS generic input field module

0.0.1(10y ago)13.7k3[3 issues](https://github.com/samsonos/cms_input/issues)15Open Software License (OSL) v 3.0PHP

Since Mar 10Pushed 9y ago3 watchersCompare

[ Source](https://github.com/samsonos/cms_input)[ Packagist](https://packagist.org/packages/samsonos/cms_input)[ Docs](http://samsonos.com/)[ RSS](/packages/samsonos-cms-input/feed)WikiDiscussions master Synced 1w ago

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

\#SamsonCMS input module

This is base module for all cms input modules.

Usage
-----

[](#usage)

There are two main static functions, this module have:

- create()
- createFromMetadata()

Function create($dbObject, $type, $param = null, $className = **CLASS**) This function create and retrieves SamsonCMS input instance based on given parameters. As you can see first two are required, these are \\samson\\activerecord\\dbRecord instance or it's ancestor and SamsonCMS input field type, this parameter should be int. Here is this list:

Field nameField identifierText0Resource1Date2Select3Table (deprecated)4Material5Number6WYSIWYG7Gallery (separate module)8The other parameters are not necessary. For example if you will not pass the $param to this function the ancestor class field will be used, and if it's not defined this class field will be used. The last parameter is for double or more nested classes. This functionality is not implemented yet.

Second function createFromMetadata($entity, $param, $identifier, $className = **CLASS**) is very similar to create() function except for first and third parameters, they are used to get \\samson\\activerecord\\dbRecord instance.

Here are some examples how this functions can be used:

```
$input = Field::create($material, 7, 'remains');
...
$input = Field::createFromMetadata($_GET['e'], $_GET['f'], $_GET['i']);
```

Other methods
-------------

[](#other-methods)

There are also value(), save($value) and convert($value) functions. The first one returns SamsonCMS module value field. Function convert() does nothing but can be overridden to convert value before save. Function save() inserts value in \\samson\\activerecord\\dbRecord object field and writes this object to database.

> Be care not to be confused with \_\_save() controller.

As this class is module it has \_\_save() controller which can be called, for example, by URL '...samson\_cms\_input/save'. As you know each SamsonCMS module has it's id and 'samson\_cms\_input' can be replaced by it to perform ancestor controller.

This class implements \\samson\\core\\iModuleViewable interface and should implement toView() function. Default there is default implementation in this module but it can be overridden in ancestor classes.

[SamsonCMS official web-site](samsoncms.com)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

3721d 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 (21 commits)")[![omaximus](https://avatars.githubusercontent.com/u/8122734?v=4)](https://github.com/omaximus "omaximus (17 commits)")[![nik-os](https://avatars.githubusercontent.com/u/7326967?v=4)](https://github.com/nik-os "nik-os (8 commits)")[![onysko](https://avatars.githubusercontent.com/u/7703953?v=4)](https://github.com/onysko "onysko (5 commits)")[![getmanenko](https://avatars.githubusercontent.com/u/14871360?v=4)](https://github.com/getmanenko "getmanenko (2 commits)")[![rmolodyko](https://avatars.githubusercontent.com/u/4399482?v=4)](https://github.com/rmolodyko "rmolodyko (1 commits)")

### Embed Badge

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

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

###  Alternatives

[jxlwqq/env-manager

Env Manager for Laravel-admin

3719.9k](/packages/jxlwqq-env-manager)[kornrunner/solidity

Pure PHP implementation of Solidity

1940.5k11](/packages/kornrunner-solidity)

PHPackages © 2026

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