PHPackages                             mezon/fields-set - 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. mezon/fields-set

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

mezon/fields-set
================

Set of typed fields

1.0.6(4y ago)210.6k5MITPHPPHP &gt;=7.2.0CI failing

Since Apr 9Pushed 4y ago2 watchersCompare

[ Source](https://github.com/alexdodonov/mezon-fields-set)[ Packagist](https://packagist.org/packages/mezon/fields-set)[ Docs](https://github.com/alexdodonov/mezon-fields-set)[ RSS](/packages/mezon-fields-set/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (8)Used By (5)

Base application class [![Build Status](https://camo.githubusercontent.com/8ded21118670aa616df158358c62d0ee23af4361d69870cc6a6f7d500eca02e3/68747470733a2f2f7472617669732d63692e636f6d2f616c6578646f646f6e6f762f6d657a6f6e2d6669656c64732d7365742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/alexdodonov/mezon-fields-set) [![codecov](https://camo.githubusercontent.com/c93cfabb23dc419475b1e7f2326735ff538244a2f77536962b24c4d88ec4b55b/68747470733a2f2f636f6465636f762e696f2f67682f616c6578646f646f6e6f762f6d657a6f6e2d6669656c64732d7365742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/alexdodonov/mezon-fields-set)
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#base-application-class--)

Intro
-----

[](#intro)

You may need to store a list of typed fields for some purposes. So this class doing exactly what you need.

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

[](#installation)

Just print

```
composer require mezon/fields-set

```

Creation
--------

[](#creation)

The creation is quite simple

```
$fieldsSet = new \Mezon\FieldsSet([
    'id' => [
        'type' => 'int',
        'title' => 'id of the record'
    ],
    'title' => [
        'type' => 'string',
        'title' => 'some title'
    ],
    'description' => [
        'type' => 'string',
        'title' => 'quite obvious yeah?)'
    ]
]);
```

Reference
---------

[](#reference)

Method returns all fields in the set

```
public function getFields(): array
```

Method validates if the field exists in our set

```
public function hasField(string $fieldName): bool
```

Method returns a list of fields'es names as array:

```
public function getFieldsNames(): array
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

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

Recently: every ~147 days

Total

7

Last Release

1640d ago

### Community

Maintainers

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

---

Top Contributors

[![alexdodonov](https://avatars.githubusercontent.com/u/14943896?v=4)](https://github.com/alexdodonov "alexdodonov (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mezon-fields-set/health.svg)

```
[![Health](https://phpackages.com/badges/mezon-fields-set/health.svg)](https://phpackages.com/packages/mezon-fields-set)
```

PHPackages © 2026

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