https://github.com/vitexsoftware/php-ease-bricks
Extending classes and widgets for EasePHP framework
https://github.com/vitexsoftware/php-ease-bricks
Last synced: 7 months ago
JSON representation
Extending classes and widgets for EasePHP framework
- Host: GitHub
- URL: https://github.com/vitexsoftware/php-ease-bricks
- Owner: VitexSoftware
- License: gpl-2.0
- Created: 2019-06-05T14:20:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T14:14:54.000Z (over 1 year ago)
- Last Synced: 2025-06-19T02:07:11.979Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 709 KB
- Stars: 4
- Watchers: 2
- 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)
---
Bricks Included
===============
OldTerminal

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/');
```
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:
---------
```shell
composer require vitexsoftware/ease-core-bricks
```
Older versions and its requirements https://packagist.org/packages/vitexsoftware/ease-bricks
For Debian, Ubuntu & friends please use repo:
```shell
sudo apt install lsb-release wget apt-transport-https bzip2
wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg] https://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo apt update
sudo apt install php-vitexsoftware-ease-bricks
```
In this case please add this to your app composer.json:
```json
"require": {
"deb/ease-bricks": "*"
},
"repositories": [
{
"type": "path",
"url": "/usr/share/php/EaseCore",
"options": {
"symlink": true
}
}
]
```
Note
----
All classes extendig booststrap classed was moved to separate libraries
* [ease-twbootstrap-widgets](https://github.com/VitexSoftware/php-ease-twbootstrap-widgets)
* [ease-twbootstrap4-widgets](https://github.com/VitexSoftware/php-ease-twbootstrap4-widgets)