PHP code example of yii2tech / project-template

1. Go to this page and download the library: Download yii2tech/project-template 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/ */

    

yii2tech / project-template example snippets


php 

php install.php init/all

cd /path/to/project/root
php yii asset config/frontend-asset-compress.php config/frontend-assets.php

cd /path/to/project/root
php yii asset config/backend-asset-compress.php config/backend-assets.php

cd /path/to/project/root
php yii sitemap/generate

cd /path/to/project/root
php yii self-update config/self-update.php

php yii message messages/config.php