https://github.com/vitexsoftware/php-ease-twbootstrap-widgets
Examples and Code Snipplets for Ease PHP Framework
https://github.com/vitexsoftware/php-ease-twbootstrap-widgets
easephp php php-library
Last synced: 3 months ago
JSON representation
Examples and Code Snipplets for Ease PHP Framework
- Host: GitHub
- URL: https://github.com/vitexsoftware/php-ease-twbootstrap-widgets
- Owner: VitexSoftware
- License: gpl-2.0
- Created: 2017-11-11T20:20:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T17:31:40.000Z (almost 4 years ago)
- Last Synced: 2025-01-27T07:03:06.783Z (about 1 year ago)
- Topics: easephp, php, php-library
- Language: PHP
- Size: 521 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

EasePHP Bricks
=================
Object oriented PHP Framework for easy&fast writing small/middle sized apps.
[](https://github.com/VitexSoftware/Ease-PHP-Bricks/releases)
[](https://github.com/VitexSoftware/Ease-PHP-Bricks/blob/master/LICENSE)
[](https://travis-ci.org/VitexSoftware/Ease-PHP-Bricks)
[](https://packagist.org/packages/vitexsoftware/ease-php-bricks)
[](https://hub.docker.com/r/vitexsoftware/ease-php-bricks/)
[](https://packagist.org/packages/vitexsoftware/ease-php-bricks)
[](https://packagist.org/packages/vitexsoftware/ease-php-bricks)
[](https://insight.sensiolabs.com/projects/4900ce8c-8619-4007-b2d6-0ac830064963)
---
Bricks Included
===============
GDPR Logger
-----------
Log all GDPR related information into SQL table
MainPageMenu
------------
Well framed large icons

```php
$mpmenu = new \Ease\ui\MainPageMenu();
$mpmenu->addMenuItem('logo.png', 'Caption', 'https://url/');
```
TwitterBootstrap Switch
-----------------------
Ease support for http://bootstrapswitch.com/

```php
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
Boolean LED
-----------
Show light or dark circle in given color.

```php
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)

```php
new \Ease\ui\TBWTreeView('tree', 'data: getTree()');
```
Locale Select
-------------
Simple chooser of availble locales
```php
new \Ease\ui\LangSelect()
```

Live Age
--------
Show live age based on unix timestamp
```php
new \Ease\ui\LiveAge(1530280004);
```

Sign In form
------------
Classic form with username input password input and submit button
```php
new \Ease\ui\SignInForm();
```

Password Input
--------------
With eye icon to show plaintext
```php
new PasswordInput($this->passwordField);
```

Browsing History
----------------
```
new BrowsingHistory();
```

Sticky note
----------------
```
new StickyNote();
```

Selectizer trait
----------------
Apply Selectize.js to InputBox or Select
```php
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);
```

Installation
------------
Composer:
---------
composer require vitexsoftware/ease-bricks
Older versions and its requirements https://packagist.org/packages/vitexsoftware/ease-bricks
To get Docker image:
docker pull vitexsoftware/ease-bricks
For Debian, Ubuntu & friends please use repo:
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:
"require": {
"ease-bricks": "*"
},
"repositories": [
{
"type": "path",
"url": "/usr/share/php/EaseCore",
"options": {
"symlink": true
}
}
]
Links
=====
Homepage: https://www.vitexsoftware.cz/ease.php
GitHub: https://github.com/VitexSoftware/Ease-PHP-Bricks
Apigen Docs: https://www.vitexsoftware.cz/ease-php-bricks/