PHP code example of singularity / yii2-daterangepicker

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

    

singularity / yii2-daterangepicker example snippets


use singularity\daterangepicker\Daterangepicker;

...

<div class="col-lg-6">
    <?= Daterangepicker::widget([
        'model' => $model,
        'attribute' => 'attribute',
        'addonIcon' => 'fal fa-clock',
        'clientOptions' => [
            'opens' => 'right'
        ]
    ]);