2017 © Pedro Peláez
 

library ease-bricks

EasePHPframework addons and code snipplets

image

vitexsoftware/ease-bricks

EasePHPframework addons and code snipplets

  • Sunday, July 1, 2018
  • by vitex
  • Repository
  • 1 Watchers
  • 0 Stars
  • 92 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 300 % Grown

The README.md

EasePHP Framework Logo, (*1)

EasePHP Bricks

Object oriented PHP Framework for easy&fast writing small/middle sized apps., (*2)

Latest Version Software License Build Status Total Downloads Docker pulls Downloads Latest stable, (*3)

SensioLabsInsight, (*4)


Bricks Included

GDPR Logger

Log all GDPR related information into SQL table, (*5)

MainPageMenu

Well framed large icons, (*6)

MainPageMenu, (*7)

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

TwitterBootstrap Switch

Ease support for http://bootstrapswitch.com/, (*8)

TWBSwitch, (*9)

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

The libjs-bootstrap-switch package with requied js/css assets is already present in our repository https://www.vitexsoftware.cz/repo.php, (*10)

Boolean LED

Show light or dark circle in given color., (*11)

Boolean LED, (*12)

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

Tree View

Ease Support for http://jonmiles.github.io/bootstrap-treeview/ A simple and elegant solution to displaying hierarchical tree structures (i.e. a Tree View), (*13)

TreeView, (*14)

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

Locale Select

Simple chooser of availble locales, (*15)

new \Ease\ui\LangSelect()

LocaleSelect, (*16)

Live Age

Show live age based on unix timestamp, (*17)

new \Ease\ui\LiveAge(1530280004);    

LiveAge, (*18)

Sign In form

Classic form with username input password input and submit button, (*19)

new \Ease\ui\SignInForm();

Sign In, (*20)

Password Input

With eye icon to show plaintext, (*21)

new PasswordInput($this->passwordField);

Password Input, (*22)

Browsing History

new BrowsingHistory();

Browsing History, (*23)

Sticky note

new StickyNote();

Sticky Note, (*24)

Selectizer trait

Apply Selectize.js to InputBox or Select, (*25)

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, (*26)

Installation

Composer:

composer require vitexsoftware/ease-bricks

Older versions and its requirements https://packagist.org/packages/vitexsoftware/ease-bricks, (*27)

To get Docker image:, (*28)

docker pull vitexsoftware/ease-bricks

For Debian, Ubuntu & friends please use repo:, (*29)

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

In this case please add this to your app composer.json:, (*30)

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

Links

Homepage: https://www.vitexsoftware.cz/ease.php, (*31)

GitHub: https://github.com/VitexSoftware/Ease-PHP-Bricks, (*32)

Apigen Docs: https://www.vitexsoftware.cz/ease-php-bricks/, (*33)

The Versions