Mezon PHP GUI Builder: Generate HTML based UI from component classes

Recommend this page to a friend!
  Info   View files Documentation   View files View files (67)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-07-07 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 63 All time: 9,762 This week: 310Up
Version License PHP version Categories
mezon-gui 1.0.0MIT/X Consortium ...5HTML, PHP 5, Validation
Description Author

This package can be used to generate HTML based user interfaces from component classes.

It provides a set of classes that can be used together to generate and validate HTML based forms or list data records using HTML templates to customize the look and feel.

The package provide several built-in components for different types of page and form elements. Currently it supports elements like:

- Checkbox
- Custom Field
- Date
- File
- Text
- Label
- Record
- Select
- Text area

Picture of Alexey Dodonov
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

Details

GUI

Build Status codecov Scrutinizer Code Quality

Intro

Mezon provides set of classes for GUI creation.

Installation

Just print in console

composer require mezon/gui

And that's all )

Usage

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

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 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'
	]
]);
  Files folder image Files  
File Role Description
Files folder imageField (11 files)
Files folder imageFormBuilder (2 files)
Files folder imageListBuilder (1 file)
Files folder imageres (1 directory)
Files folder imageTests (18 files, 1 directory)
Files folder imageWidgetsRegistry (2 files, 1 directory)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Plain text file Control.php Class Class source
Plain text file Field.php Class Class source
Plain text file FieldsAlgorithms.php Class Class source
Plain text file FormBuilder.php Class Class source
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:63
This week:0
All time:9,762
This week:310Up

For more information send a message to info at phpclasses dot org.