PHP code example of puresoft / yii2-persian-datepicker

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

    

puresoft / yii2-persian-datepicker example snippets


# Within a model
<?= Datepicker::widget([
    'model' => $model,
    'attribute' => 'date',
]) 

# Without model
<?= Datepicker::widget([
    'name' => 'my-date-picker',
    'value' => '1373/12/17',
]) 

php composer.phar