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  
Name: Alexey Dodonov <contact>
Classes: 16 packages by
Country: Russian Federation Russian Federation
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

  Files folder image Files  /  Field  
File Role Description
  Plain text file CheckboxesField.php Class Class source
  Plain text file CustomField.php Class Class source
  Plain text file InputDate.php Class Class source
  Plain text file InputFile.php Class Class source
  Plain text file InputText.php Class Class source
  Plain text file LabelField.php Class Class source
  Plain text file RecordField.php Class Class source
  Plain text file RemoteField.php Class Class source
  Plain text file Select.php Class Class source
  Plain text file Textarea.php Class Class source
  Plain text file TextField.php Class Class source

  Files folder image Files  /  FormBuilder  
File Role Description
  Plain text file FormHeader.php Class Class source
  Plain text file RowsField.php Class Class source

  Files folder image Files  /  ListBuilder  
File Role Description
  Plain text file ListBuilder.php Class Class source

  Files folder image Files  /  res  
File Role Description
Files folder imagetemplates (6 files)

  Files folder image Files  /  res  /  templates  
File Role Description
  Accessible without login Plain text file creation_form.tpl Data Auxiliary data
  Accessible without login Plain text file creation_form_header.tpl Data Auxiliary data
  Accessible without login Plain text file creation_form_no_header.tpl Data Auxiliary data
  Accessible without login Plain text file updating_form.tpl Data Auxiliary data
  Accessible without login Plain text file updating_form_header.tpl Data Auxiliary data
  Accessible without login Plain text file updating_form_no_header.tpl Data Auxiliary data

  Files folder image Files  /  Tests  
File Role Description
Files folder imageconf (6 files)
  Plain text file BootstrapWidgetsUnitTest.php Class Class source
  Plain text file CheckboxesFieldUnitTest.php Class Class source
  Plain text file CustomFieldUnitTest.php Class Class source
  Plain text file FieldsAlgorithmsUnitTest.php Class Class source
  Plain text file FieldUnitTest.php Class Class source
  Plain text file FormBuilderUnitTest.php Class Class source
  Plain text file FormHeaderUnitTest.php Class Class source
  Plain text file InputDateUnitTest.php Class Class source
  Plain text file InputFileUnitTest.php Class Class source
  Plain text file InputTextUnitTest.php Class Class source
  Plain text file LabelFieldUnitTest.php Class Class source
  Plain text file ListBuilderUnitTest.php Class Class source
  Plain text file RecordFieldUnitTest.php Class Class source
  Plain text file RemoteFieldUnitTest.php Class Class source
  Plain text file RowsFieldUnitTest.php Class Class source
  Plain text file SelectUnitTest.php Class Class source
  Plain text file TextareaUnitTest.php Class Class source
  Plain text file TextFieldUnitTest.php Class Class source

  Files folder image Files  /  Tests  /  conf  
File Role Description
  Accessible without login Plain text file form-builder-setup.json Data Auxiliary data
  Accessible without login Plain text file has-label-setter.json Data Auxiliary data
  Accessible without login Plain text file layout.json Data Auxiliary data
  Accessible without login Plain text file name-setter.json Data Auxiliary data
  Accessible without login Plain text file required-setter.json Data Auxiliary data
  Accessible without login Plain text file setup.json Data Auxiliary data

  Files folder image Files  /  WidgetsRegistry  
File Role Description
Files folder imageres (1 directory)
  Plain text file BootstrapWidgets.php Class Class source
  Plain text file WidgetsRegistryBase.php Class Class source

  Files folder image Files  /  WidgetsRegistry  /  res  
File Role Description
Files folder imagetemplates (12 files)

  Files folder image Files  /  WidgetsRegistry  /  res  /  templates  
File Role Description
  Accessible without login Plain text file list-of-buttons.tpl Data Auxiliary data
  Accessible without login Plain text file listing-actions.tpl Data Auxiliary data
  Accessible without login Plain text file listing-footer.tpl Data Auxiliary data
  Accessible without login Plain text file listing-header-actions.tpl Data Auxiliary data
  Accessible without login Plain text file listing-header-cell.tpl Data Auxiliary data
  Accessible without login Plain text file listing-header.tpl Data Auxiliary data
  Accessible without login Plain text file listing-no-items.tpl Data Auxiliary data
  Accessible without login Plain text file listing-row-cell.tpl Data Auxiliary data
  Accessible without login Plain text file listing-row-centered-cell.tpl Data Auxiliary data
  Accessible without login Plain text file listing-row.tpl Data Auxiliary data
  Accessible without login Plain text file simple-listing-header.tpl Data Auxiliary data
  Accessible without login Plain text file table-cell-start.tpl Data Auxiliary data

 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.