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

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

mezon/gui
=========

Small gui script

1.3.7(3y ago)35.1k2MITPHPPHP &gt;=7.2.0CI failing

Since Feb 18Pushed 3y ago2 watchersCompare

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

READMEChangelogDependencies (12)Versions (42)Used By (2)

GUI
===

[](#gui)

[![Build Status](https://camo.githubusercontent.com/b8fa81826c8610dc726e417110a8474e33a063994a2a9b385ec932f50873af18/68747470733a2f2f7472617669732d63692e636f6d2f616c6578646f646f6e6f762f6d657a6f6e2d6775692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/alexdodonov/mezon-gui) [![codecov](https://camo.githubusercontent.com/b8bd9531aa974d1732916c4df98ff0eab61f3bd1662bfe676c28b3e3eaca6618/68747470733a2f2f636f6465636f762e696f2f67682f616c6578646f646f6e6f762f6d657a6f6e2d6775692f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/alexdodonov/mezon-gui) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/91e16c7d4687d2d5b7d46aeb2263bcc0e4d707969a6435fb10dcc715c18ba8c8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c6578646f646f6e6f762f6d657a6f6e2d6775692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexdodonov/mezon-gui/?branch=master)

Intro
-----

[](#intro)

Mezon provides set of classes for GUI creation.

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

[](#installation)

Just print in console

```
composer require mezon/gui

```

And that's all )

Usage
-----

[](#usage)

### DateTimeUtils class

[](#datetimeutils-class)

This class provides utilities for date and time tasks. For example this call:

```
Mezon\Class\DateTimeUtils::isToday('2020-02-02');
```

Will return true if the passed date is a today and false otherwise.

And this method will return true if the passed date was a yesterday:

```
Mezon\Class\DateTimeUtils::isYesterday('2020-02-02');
```

But we also can get name of the month by it's code:

```
Mezon\Class\DateTimeUtils::locale = 'ru';
var_dump(Mezon\Class\DateTimeUtils::dayMonth('2020-02-02'));
```

### Fields algorithms

[](#fields-algorithms)

This class provides routines for operation with form fields. To init this class use constructor:

```
$fields = new \Mezon\Gui\FieldsAlgorithms([
    'id'=>['type'=>'int'],
    'description'=>['type'=>'string']
]);
```

Here we define two fields.

### Form builder

[](#form-builder)

Form builder is obviously used for building forms )

It can be done like this:

```
$form = new \Mezon\Gui\FormBuilder([
	'id' => [
		'type' => 'int',
		'title' => 'our entity's id'
	],
	'title' => [
		'type' => 'string',
		'title' => 'our entity's title'
	]
]);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~65 days

Total

41

Last Release

1340d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2.0

1.0.5PHP ^7.2

### 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 (75 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

4035.3M7](/packages/suncat-mobile-detect-bundle)[spatie/laravel-dashboard

A dashboard for Laravel

568156.1k94](/packages/spatie-laravel-dashboard)[brick/schema

Schema.org library for PHP

5163.7k1](/packages/brick-schema)[ibericode/vat-bundle

Bundle for using ibericode/vat in a Symfony environment

21254.5k](/packages/ibericode-vat-bundle)[sylius/taxonomy

Taxonomies - categorization of domain models in PHP projects.

14435.6k10](/packages/sylius-taxonomy)[granam/czech-vocative

Inflect czech names and surnames.

15189.1k3](/packages/granam-czech-vocative)

PHPackages © 2026

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