1. Go to this page and download the library: Download pcrt/yii2-gii 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/ */
pcrt / yii2-gii example snippets
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
....
'generators' => [ // HERE
'pcrtmodel' => [
'class' => 'pcrt\generators\model\Generator',
'templates' => [
'pcrt' => '@vendor/pcrt/yii2-gii/generators/model/pcrt',
]
],
'pcrtcrud' => [
'class' => 'pcrt\generators\crud\Generator',
'templates' => [
'pcrt' => '@vendor/pcrt/yii2-gii/generators/crud/pcrt',
]
]
],
....
// uncomment the following to add your IP if you are not connecting from localhost.
// 'allowedIPs' => ['127.0.0.1', '::1'],
];
$ php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.