PHP code example of naffiq / yii2-helpers

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

    

naffiq / yii2-helpers example snippets



use \naffiq\helpers\DateHelper; 

DateHelper::getTimeSince(strtotime('-5 min'));


use \naffiq\helpers\Number; 

Number::toText(10245);