PHP code example of vitexsoftware / ease-core-bricks

1. Go to this page and download the library: Download vitexsoftware/ease-core-bricks 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/ */

    

vitexsoftware / ease-core-bricks example snippets


$mpmenu = new \Ease\ui\MainPageMenu();
$mpmenu->addMenuItem('logo.png', 'Caption', 'https://url/');

new \Ease\ui\BooleanLED(false, 'green');

new \Ease\ui\TBWTreeView('tree', 'data: getTree()');

new \Ease\ui\LangSelect()

new \Ease\ui\LiveAge(1530280004);    

new \Ease\ui\SignInForm();

new PasswordInput($this->passwordField);

class Selector extends \Ease\Html\SelectTag
{
    use \Ease\ui\Selectizer;
}

$properties = [
    'valueField' => 'value',
    'labelField' => 'key',
    'searchField' => ['key', 'value']
];

$options = [
    ['key' => 'red', 'value' => 'Red'],
    ['key' => 'blue', 'value' => 'Blue'],
    ['key' => 'green', 'value' => 'Green'],
    ['key' => 'yellow', 'value' => 'Yellow'],
];

$s = new Selector('selector');
$s->selectize($properties, $options);
json
    ""deb/ease-bricks": "*"
    },
    "repositories": [
        {
            "type": "path",
            "url": "/usr/share/php/EaseCore",
            "options": {
                "symlink": true
            }
        }
    ]