PHP code example of myclabs / muih

1. Go to this page and download the library: Download myclabs/muih library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

myclabs / muih example snippets


$button = new Button('Some Label', 'info');
$button->display();

$modal = new Modal('Some Content');

$modal->setHeaderContent('Some Title');
$modal->addAttribute('id', 'some_id');
$modal->getBody()->addClass('some-class');

$modal->display();

echo $this->button('Show Modal')->showModal('some_id');