1. Go to this page and download the library: Download xihrni/php-tools 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/ */
xihrni / php-tools example snippets
use xihrni\tools\Other;
// $data = ...;
Other::dump($data);
use xihrni\tools\Yii2;
// ...
public function beforeAction($action)
{
$moduleId = Yii2::getFullModuleId($action->controller->module, $ids = []);
}
// ...
backupDataTableForSql(User::tableName());