PHP code example of galonskiy / yii2-codebuffer

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

    

galonskiy / yii2-codebuffer example snippets


...
'components' => [
    ...
    'codebuffer' => [
        'class' => '\galonskiy\codebuffer\CodeBuffer'
    ]
    ...
]
...

...
Yii::$app->codebuffer->generate('XXX', 'XXX');
...

...
(new \galonskiy\codebuffer\CodeBuffer)->generate('XXX', 'XXX');
...

php yii migrate --migrationPath=@vendor/galonskiy/yii2-codebuffer/migrations