PHP code example of qingbing / yii2-helper

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

    

qingbing / yii2-helper example snippets


# 配置代理示例 main.php
'proxyConfigure' => [
    'class'       => \YiiHelper\proxy\ConfigureProxy::class,
    'baseUrl'     => 'http://configure.yii.us',
    'systemCode'  => 'configure',
    'enableToken' => true,
    'uuid'        => 'portal',
    'publicKey'   => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1o1cbhRTFQcQoIXynI6P04fXmxb9NCz6xJK+x37KWSPLQ0XrqY87m1PZC92XDXn/UsXRZpenatE8gEfwawOkC3uGuGcTkk4LFrp/+iodxYxGYDaFrtCaSYwEu0xv585aKr+e22EoJmqYVNS8vAlzNt+',
],

# 配置代理示例 main.php
'proxyPortal'  => [
    'class'       => \YiiHelper\proxy\PortalProxy::class,
    'enableToken' => true,
    'systemCode'  => 'portal',
    'baseUrl'     => 'http://portal.yii.us',
    'uuid'        => 'configure',
    'publicKey'   => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/rHe57ewHFpVX8lSwd9swNYBhQn5kIo7HMdOgjMEfsIj0FZTFDbyXwnlrLIsMPlARJ/D3v5c5b7fCREIiuVtl0DEG9h0Au5S/y09YURNxENqENPQP+',
],