GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hfq2611/guanghua-service: Yii + Swoole + layim WebSocket协议 微信,小程序 多平台客服模块 (J-guanghua)

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
kfservice
kfservice
 
 
README.md
README.md
 
 

Repository files navigation

say hello for Yii2.0

say hello for Yii2.0

Installation

The preferred way to install this extension is through composer.

需要加载依赖扩展

php composer.phar require --prefer-dist ipaya/yii2-swoole

or add

"ipaya/yii2-swoole": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

main.php 一个简单的配置

return [
    'id' => 'console',
    'basePath' => dirname(__DIR__),
    'components' => [
        'cache' => [
             // 'class' => 'yii\caching\FileCache',
             'class' => 'yii\redis\Cache',
        ],
		'request' => [
            'class'=>yii\console\Request::class,
            'isConsoleRequest' => true,
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'useFileTransport' => true,
        ],
        'wechat'=>[ // 多平台 客服
            'class'=>'backend\modules\kfservice\models\WxConfig',
            'wechat_id'=>21,
        ],
        'timer' => [ //毫秒定时器任务
            'class' => 'iPaya\Swoole\Timer',
            'listen' => [
                ['127.0.0.1', 9051]
            ]
        ],
        'asyncTask' => [ //AsyncTask 服务
            'class' => 'iPaya\Swoole\AsyncTask\Server',
            'queue' => 'queue',
            'listen' => [
                ['127.0.0.1', 9052]
            ],
        ],
        'websocket' => [ //客服 websocket 服务配置
            'class' => 'iPaya\Swoole\WebSocket\Server',
            'swooleOptions'=>[
                'worker_num'=>8,
                'reactor_num'=>2,
            ],
            'listen' => [
                ['0.0.0.0', 9053]
            ]
        ]
    ],
     'modules' => [//多平台 客服接入模块
        'kfservice' => [
            'class' => 'backend\modules\kfservice\Module',
        ],
    ],
];

About

Yii + Swoole + layim WebSocket协议 微信,小程序 多平台客服模块 (J-guanghua)

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.