vitexsoftware/ease-bricks

EasePHP框架插件和代码片段

0.9 2019-05-23 21:27 UTC

This package is auto-updated.

Last update: 2019-10-14 09:52:26 UTC


README

EasePHP Framework Logo

EasePHP Bricks

面向对象的PHP框架,用于轻松快速地编写小型/中型应用程序。

Latest Version Software License Build Status Total Downloads Docker pulls Downloads Latest stable

SensioLabsInsight

包含的砖块

GDPR Logger

将所有GDPR相关信息记录到SQL表中

MainPageMenu

精美的大图标

MainPageMenu

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

TwitterBootstrap Switch

Ease支持http://bootstrapswitch.com/

TWBSwitch

new Ease\ui\TWBSwitch('swname', true, 1,['onText' => 'YES', 'offText' => 'NO']);

包含所需js/css资源的libjs-bootstrap-switch包已存在于我们的仓库https://www.vitexsoftware.cz/repo.php

Boolean LED

在给定颜色中显示明亮的或暗淡的圆形。

Boolean LED

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

Tree View

Ease支持http://jonmiles.github.io/bootstrap-treeview/,这是一个简单优雅的显示层次树结构(即树视图)的解决方案

TreeView

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

Locale Select

简单的可用的区域选择器

new \Ease\ui\LangSelect()

LocaleSelect

Live Age

基于Unix时间戳显示实时年龄

new \Ease\ui\LiveAge(1530280004);    

LiveAge

登录表单

经典的表单,包含用户名输入、密码输入和提交按钮

new \Ease\ui\SignInForm();

Sign In

密码输入

带有眼睛图标以显示明文

new PasswordInput($this->passwordField);

Password Input

浏览历史

new BrowsingHistory();

Browsing History

便签

new StickyNote();

Sticky Note

Selectizer trait

将Selectize.js应用于InputBox或选择框

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);

Selectizer

安装

Composer

composer require vitexsoftware/ease-bricks

旧版本及其要求 https://packagist.org.cn/packages/vitexsoftware/ease-bricks

获取Docker镜像

docker pull vitexsoftware/ease-bricks

对于Debian、Ubuntu及其它,请使用仓库

wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key|sudo apt-key add -
echo deb http://v.s.cz/ stable main > /etc/apt/sources.list.d/ease.list
aptitude update
aptitude install ease-bricks

在这种情况下,请将以下内容添加到您的应用composer.json中

"require": {
    "ease-bricks": "*"
},
"repositories": [
    {
        "type": "path",
        "url": "/usr/share/php/Ease",
        "options": {
            "symlink": true
        }
    }
]

链接

主页: https://www.vitexsoftware.cz/ease.php

GitHub: https://github.com/VitexSoftware/Ease-PHP-Bricks

Apigen 文档:https://www.vitexsoftware.cz/ease-php-bricks/