PHP code example of mezon / gui

1. Go to this page and download the library: Download mezon/gui library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mezon / gui example snippets


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

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

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

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

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