https://github.com/myclabs/muih
PHP and Javascript Helper for creation of Bootstrap 3 UI elements
https://github.com/myclabs/muih
Last synced: 3 months ago
JSON representation
PHP and Javascript Helper for creation of Bootstrap 3 UI elements
- Host: GitHub
- URL: https://github.com/myclabs/muih
- Owner: myclabs
- License: mit
- Created: 2014-01-02T14:42:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-20T09:46:11.000Z (almost 11 years ago)
- Last Synced: 2025-01-31T22:51:15.087Z (4 months ago)
- Language: PHP
- Size: 391 KB
- Stars: 5
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MUIH
[](https://travis-ci.org/myclabs/MUIH) [](https://coveralls.io/r/myclabs/MUIH) [](https://packagist.org/packages/myclabs/muih) [](https://packagist.org/packages/myclabs/muih) [](https://packagist.org/packages/myclabs/muih)
MUIH, for Myc-lab User Interface Helper, is a PHP and Javascript library containing helpers for creation of Bootstrap 3 UI elements.
It is aiming to provide plain php objects for html/js component and helper for Zend1, Zend2 and twig(to be implemented).
Usage:
```php
$button = new Button('Some Label', 'info');
$button->display();
```This will echo a simple html button.
Alternatively, you can use render() to get the code.```php
$modal = new Modal('Some Content');$modal->setHeaderContent('Some Title');
$modal->addAttribute('id', 'some_id');
$modal->getBody()->addClass('some-class');$modal->display();
```This will echo a modal #some_id element, with body having .some-class class.
```php
echo $this->button('Show Modal')->showModal('some_id');
```You can also use helper fer Zend1 and Zend2.