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

Recommend this page to a friend!
  Info   Documentation   View files (67)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-07-07 (26 days ago) Not yet rated by the usersTotal: 61 This week: 3All time: 9,746 This week: 68
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: 12 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 336691 in Russian Federation Russian Federation
Week rank: 2 1 in 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  
File Role Description
Field (11 files)
FormBuilder (2 files)
ListBuilder (1 file)
res (1 directory)
Tests (18 files, 1 directory)
WidgetsRegistry (2 files, 1 directory)
.travis.yml Data Auxiliary data
composer.json Data Auxiliary data
composer.lock Data Auxiliary data
Control.php Class Class source
Field.php Class Class source
FieldsAlgorithms.php Class Class source
FormBuilder.php Class Class source
phpunit.xml Data Auxiliary data
README.md Doc. Documentation

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

  Files  /  FormBuilder  
File Role Description
   FormHeader.php Class Class source
   RowsField.php Class Class source

  Files  /  ListBuilder  
File Role Description
   ListBuilder.php Class Class source

  Files  /  res  
File Role Description
templates (6 files)

  Files  /  res  /  templates  
File Role Description
   creation_form.tpl Data Auxiliary data
   creation_form_header.tpl Data Auxiliary data
   creation_form_no_header.tpl Data Auxiliary data
   updating_form.tpl Data Auxiliary data
   updating_form_header.tpl Data Auxiliary data
   updating_form_no_header.tpl Data Auxiliary data

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

  Files  /  Tests  /  conf  
File Role Description
   form-builder-setup.json Data Auxiliary data
   has-label-setter.json Data Auxiliary data
   layout.json Data Auxiliary data
   name-setter.json Data Auxiliary data
   required-setter.json Data Auxiliary data
   setup.json Data Auxiliary data

  Files  /  WidgetsRegistry  
File Role Description
res (1 directory)
   BootstrapWidgets.php Class Class source
   WidgetsRegistryBase.php Class Class source

  Files  /  WidgetsRegistry  /  res  
File Role Description
templates (12 files)

  Files  /  WidgetsRegistry  /  res  /  templates  
File Role Description
   list-of-buttons.tpl Data Auxiliary data
   listing-actions.tpl Data Auxiliary data
   listing-footer.tpl Data Auxiliary data
   listing-header-actions.tpl Data Auxiliary data
   listing-header-cell.tpl Data Auxiliary data
   listing-header.tpl Data Auxiliary data
   listing-no-items.tpl Data Auxiliary data
   listing-row-cell.tpl Data Auxiliary data
   listing-row-centered-cell.tpl Data Auxiliary data
   listing-row.tpl Data Auxiliary data
   simple-listing-header.tpl Data Auxiliary data
   table-cell-start.tpl Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:61
This week:3
All time:9,746
This week:68

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