vladzimir/phpeasyui

php wrapper EasyUI without dependency

Maintainers

Package info

github.com/Vladzimir/phpEasyUI

pkg:composer/vladzimir/phpeasyui

Fund package maintenance!

Buy Me A Coffee

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v1.4.2 2025-11-29 20:56 UTC

This package is auto-updated.

Last update: 2026-03-01 00:46:53 UTC


README

php wrapper for EasyUI without dependency

Installation

Just copy all files into F3's Easyui folder. Done.

If you use composer, you can add this package by running composer require vladzimir/phpeasyui

Quick Start

use Easyui\Easyui;

echo Easyui::dataGrid('test')->
pMethod('get')->
eOnSelect(new Js("function(){ //function code }"))->
append(
    Easyui::dataGrid()->
    mGetPager()->append(
        Easyui::pagination()->
        eOnChangePageSize(
            new Js(
             <<<JS
    function (pageSize) { 
        $.cookie('pageSize',pageSize); 
    }
JS        
            )            
        )
    )
);

echo Easyui::messager()->
    mConfirm(
        Easyui::messagerConfirm()->
        title('Title')
    );

All property start with letter p.

All event start with letter e.

All method start with letter m.

pMethodName()
eEventName()
mMethodName()

Output

$("#test").datagrid({
    "method": "get",
    "onSelect": function () { //function code }
}).datagrid('getPager').pagination({
    "onChangePageSize": function (pageSize) { 
        $.cookie('pageSize',pageSize); 
    }
});
$.messager.confirm({
    "title": "Title"
});

If you need to install components not as a selector, turn second variable to false

Easyui::dataGrid('test', false)

Output

$(test).datagrid();

New in v1.4

Easyui::dataGrid('test')->asSetVar();
Easyui::dataGrid('test')->asUseVar();

Output

var id_test = $('test').datagrid();
id_test.datagrid();

Documentation

See in code for components or official docs EasyUI https://www.jeasyui.com/documentation/index.php