2017 © Pedro Peláez
 

yii2-extension yii2-wxgz

自用

image

kaikaige/yii2-wxgz

自用

  • Thursday, August 24, 2017
  • by kaikaige
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

自用微信公众号功能开发

自用, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

安装看人品

composer require "kaikaige/yii2-wxgz":"*"

倒数数据表

vendor/kaikaige/yii2-wxgz/wx.sql

config

'components' => [
    ... 
    'wx' => [
        'class' => 'kaikaige\wxgz\sdk\Wx',
        'appid' => 'appid',
        'secret' => 'xxxxxx',
        'token' => 'xxxxxx',
        'wxid' => 'xxxxxx'
    ]
    ...
]

Usage

发送模板消息, (*3)

$data = [
    'first' => ['value' => '恭喜您在下单成功!'],
];
$v = $this->wx->getMsg()->sendTemplate('oaByzwlXzenn5Lj2NEdAeIX9XJ-A', '3tmjfdpAQvnfN1pD3Pf7CP0vX4U45ACCEDdD8BXVzOs', $data, 'http://www.baidu.com')

The Versions

24/08 2017

dev-master

9999999-dev

自用

  Sources   Download

Apache-2.0

The Requires

 

by Avatar kaikaige

extension yii2

24/08 2017

1.0

1.0.0.0

自用

  Sources   Download

Apache-2.0

The Requires

 

by Avatar kaikaige

extension yii2