PHP code example of vinkchen / yii2-mns-admin

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

    

vinkchen / yii2-mns-admin example snippets



/**
 * 私有文件配置 不传到代码仓库里
 */
return [
    'components' => [
        'request' => [
            // !!! insert a secret key in the following (if it is empty) - this is cessKeyId'=>'从阿里云获取的accessKeyId',//需要修改 替换成从阿里云获取的accessKeyId
            'AccessKeySecret'=>'从阿里云获取的accessKeySecret',//需要修改 替换成从阿里云获取的accessKeySecret
            'endpoint'=>'http://*****.mns.cn-hangzhou.aliyuncs.com/'//需要修改 替换成从阿里云获取的enpoint
        ],
        'db'=>[
            'dsn' => 'mysql:host=127.0.0.1;dbname=yii2-mns-admin',//需要修改 替换成真实DB地址
            'username' => 'root',//需要修改 替换成真实DB用户名
            'password' => 'root',//需要修改 替换成真实DB密码
        ]
    ]
];