PHP code example of smukm / yii2-bitwise-checkboxlist

1. Go to this page and download the library: Download smukm/yii2-bitwise-checkboxlist 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/ */

    

smukm / yii2-bitwise-checkboxlist example snippets


<?= smukm\bcl\BitwiseCheckboxList::widget([
    'name' => 'attributeName',
    'data' => ['1' => 'New', '2' => 'Paid', '4' => 'Delivered', '8' => 'Complete'],
    'columns' => 2,
]) 

<?= $form->field($model, 'attributeName')->widget(smukm\bcl\BitwiseCheckboxList::class, [
    'data' => ['1' => 'New', '2' => 'Paid', '4' => 'Delivered', '8' => 'Complete'],
])