PHP code example of spaf / yii2-simputils

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

    

spaf / yii2-simputils example snippets



$config = [
//  ...
    'bootstrap' => [
	    [
	    	'class' => 'spaf\yii\simputils\bootstrap\SimputilsBootstrap',
		    'isConsole' => true,
	    ]
    ],
//  ...
];


$config = [
//  ...
    'bootstrap' => [
	    [
	    	'class' => 'spaf\yii\simputils\bootstrap\SimputilsBootstrap',
	    ]
    ],
//  ...
];



use function spaf\simputils\basic\pd;

$myVar = [
    'key1' => 'value1',
    'key2' => [
        'subkey1' => 'subvalue1',
        'subkey2' => 12
    ],
];

pd($myVar);