PHPackages                             mezon/field - 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/field

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

mezon/field
===========

Field base class for the FormBuilder

1.1.1(4y ago)35.2k2MITPHPPHP &gt;=7.2.0

Since Sep 18Pushed 4y ago2 watchersCompare

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

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

Base field class for form generator
===================================

[](#base-field-class-for-form-generator)

Intro
-----

[](#intro)

This class will help you to construct forms in PHP code.

More links
----------

[](#more-links)

This package relqtes to [Mezon Project](https://github.com/alexdodonov/mezon) and [Mezon Form Builder](https://github.com/alexdodonov/mezon-gui#form-builder).

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

[](#installation)

Just print in console

```
composer require mezon/field

```

And that's all )

Learn more
==========

[](#learn-more)

More information can be found here:

[Twitter](https://twitter.com/mezonphp)

[dev.to](https://dev.to/alexdodonov)

Reference
=========

[](#reference)

Method compiles field into HTML code:

```
public function html(): string
```

Method returns title for the field:

```
public function getTitle(): string
```

Method returns true if the field is required, false otherwise:

```
public function isRequired(): bool
```

Method returns true if the field is visible and false otherwise:

```
public function isVisible(): bool
```

Method returns true if the field has label, false otherwise:

```
public function hasLabel(): bool
```

Method returns true if the field fills the whole row in the form, false otherwise:

```
public function fillAllRow(): bool
```

Method returns the type of the field:

```
public function getType(): string
```

Method returns name prefix for the field's name:

```
public function getNamePrefix(): string
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

Total

4

Last Release

1495d 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 (9 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[pecl/mailparse

Email message manipulation

361.4k](/packages/pecl-mailparse)[zakurdaev/yii2-editorjs-widget

Use editor.js in form. Module for Yii2

101.5k1](/packages/zakurdaev-yii2-editorjs-widget)

PHPackages © 2026

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