PHP code example of alpiiscky / yii2-simple-helpers

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

    

alpiiscky / yii2-simple-helpers example snippets



    alpiiscky\simplehelpers\AdminHelper::pre('1');
    alpiiscky\simplehelpers\AdminHelper::code('1');


    alpiiscky\simplehelpers\RegularHelper::pregMatch($expression, $str);


    alpiiscky\simplehelpers\UrlHelper::createSlug($str);


    alpiiscky\simplehelpers\ArrayHelper::mapping($array, 'id', ['code', 'name']);

[ 'id' => 'code - name' ]