PHP code example of parieses / wechatpush

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

    

parieses / wechatpush example snippets


公众号推送已经测试可以使用
使用方法
$config = ['appid'=>'公众号appid','secret'=>'公众号的secret']
$type = 1 默认公众号
$data = 公众号及小程序推送数组
$push  = new WeChatPush(1,$config)
$push->setdate($data);
$push->Push;