[![Latest Stable Version](https://poser.pugx.org/zoujingli/wechat-developer/v/stable)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Latest Unstable Version](https://poser.pugx.org/zoujingli/wechat-developer/v/unstable)](https://packagist.org/packages/zoujingli/wechat-developer)
[![Total Downloads](https://poser.pugx.org/zoujingli/wechat-developer/downloads)](https://packagist.org/packages/zoujingli/wechat-developer)
[![License](https://poser.pugx.org/zoujingli/wechat-developer/license)](https://packagist.org/packages/zoujingli/wechat-developer)
WeChatDeveloper for PHP
----
* WeChatDeveloper 是基于 [wechat-php-sdk](https://github.com/zoujingli/wechat-php-sdk) 重构,优化并完善;
* 运行最底要求 PHP 版本 5.4 , 建议在 PHP7 上运行以获取最佳性能;
* WeChatDeveloper 针对 access_token 失效增加了自动刷新机制;
* 微信的部分接口需要缓存数据在本地,因此对目录需要有写权限;
* 我们鼓励大家使用 composer 来管理您的第三方库,方便后期更新操作;
* WeChatDeveloper 已历经数个线上项目考验,欢迎 fork 或 star 此项目。
* 微信商户支持已经支持 v2 接口,组件开发版支持 v3 接口。
功能描述
----
* 微信小程序,服务端接口支持
* 微信认证服务号,服务端接口支持
* 微信支付(账单、卡券、红包、退款、转账、App支付、JSAPI支付、Web支付、扫码支付等)
* 支付宝支付(账单、转账、App支付、刷卡支付、扫码支付、Web支付、Wap支付等)
技术帮助
----
PHP开发技术交流(QQ群 513350915)
[![PHP微信开发群 (SDK)](http://pub.idqqimg.com/wpa/images/group.png)](http://shang.qq.com/wpa/qunwpa?idkey=ae25cf789dafbef62e50a980ffc31242f150bc61a61164458216dd98c411832a)
WeChatDeveloper 是基于官方接口封装,在做微信开发前,必需先阅读微信官方文档。
* 微信官方文档:https://mp.weixin.qq.com/wiki
* 商户支付文档:https://pay.weixin.qq.com/wiki/doc/api/index.html
针对 WeChatDeveloper 也有一准备了帮助资料可供参考。
* ThinkAdmin:https://github.com/zoujingli/ThinkAdmin
* WeChatDeveloper:https://www.kancloud.cn/zoujingli/wechat-developer
代码仓库
----
WeChatDeveloper 为开源项目,允许把它用于任何地方,不受任何约束,欢迎 fork 项目。
* Gitee 托管地址:https://gitee.com/zoujingli/WeChatDeveloper
* GitHub 托管地址:https://github.com/zoujingli/WeChatDeveloper
文件说明(后缀会根据官方文档增加文件)
----
|文件名|类名|描述|类型|加载 ①|
|---|---|---|---|---|
| App.php | AliPay\App | 支付宝App支付 | 支付宝支付 | \We::AliPayApp() |
| Bill.php | AliPay\Bill | 支付宝账单下载 | 支付宝支付 | \We::AliPayBill() |
| Pos.php | AliPay\Pos | 支付宝刷卡支付 | 支付宝支付 | \We::AliPayPos() |
| Scan.php | AliPay\Scan | 支付宝扫码支付 | 支付宝支付 | \We::AliPayScan() |
| Transfer.php | AliPay\Transfer | 支付宝转账 | 支付宝支付 | \We::AliPayTransfer() |
| Wap.php | AliPay\Wap | 支付宝Wap支付 | 支付宝支付 | \We::AliPayWap() |
| Web.php | AliPay\Web | 支付宝Web支付 | 支付宝支付 | \We::AliPayWeb() |
| Card.php | WeChat\Card | 微信卡券接口支持 | 认证服务号 | \We::WeChatCard() |
| Custom.php | WeChat\Custom | 微信客服消息接口支持 | 认证服务号 | \We::WeChatCustom() |
| Media.php | WeChat\Media | 微信媒体素材接口支持 | 认证服务号 | \We::WeChatMedia() |
| Oauth.php | WeChat\Oauth | 微信网页授权消息类接口 | 认证服务号 | \We::WeChatOauth() |
| Pay.php | WeChat\Pay | 微信支付类接口 | 认证服务号 | \We::WeChatPay() |
| Product.php | WeChat\Product | 微信商店类接口 | 认证服务号 | \We::WeChatProduct() |
| Qrcode.php | WeChat\Qrcode | 微信二维码接口支持 | 认证服务号 | \We::WeChatQrcode() |
| Receive.php | WeChat\Receive | 微信推送事件消息处理支持 | 认证服务号 | \We::WeChatReceive() |
| Scan.php | WeChat\Scan | 微信扫一扫接口支持 | 认证服务号 | \We::WeChatScan() |
| Script.php | WeChat\Script | 微信前端JSSDK支持 | 认证服务号 | \We::WeChatScript() |
| Shake.php | WeChat\Shake | 微信蓝牙设备揺一揺接口 | 认证服务号 | \We::WeChatShake() |
| Tags.php | WeChat\Tags | 微信粉丝标签接口支持 | 认证服务号 | \We::WeChatTags() |
| Template.php | WeChat\Template | 微信模板消息接口支持 | 认证服务号 | \We::WeChatTemplate() |
| User.php | WeChat\User | 微信粉丝管理接口支持 | 认证服务号 | \We::WeChatCard() |
| Wifi.php | WeChat\Wifi | 微信门店WIFI管理支持 | 认证服务号 | \We::WeChatWifi() |
| Bill.php | WePay\Bill | 微信商户账单及评论 | 微信支付 | \We::WePayBill() |
| Coupon.php | WePay\Coupon | 微信商户代金券 | 微信支付 | \We::WePayCoupon() |
| Order.php | WePay\Order | 微信商户订单 | 微信支付 | \We::WePayOrder() |
| Redpack.php | WePay\Redpack | 微信红包支持 | 微信支付 | \We::WePayRedpack() |
| Refund.php | WePay\Refund | 微信商户退款 | 微信支付 | \We::WePayRefund() |
| Transfers.php | WePay\Transfers | 微信商户打款到零钱 | 微信支付 | \We::WePayTransfers() |
| TransfersBank.php | WePay\TransfersBank | 微信商户打款到银行卡 | 微信支付 | \We::WePayTransfersBank() |
| Crypt.php | WeMini\Crypt | 微信小程序数据加密处理 | 微信小程序 | \We::WeMiniCrypt() |
| Plugs.php | WeMini\Plugs | 微信小程序插件管理 | 微信小程序 | \We::WeMiniPlugs() |
| Poi.php | WeMini\Poi | 微信小程序地址管理 | 微信小程序 | \We::WeMiniPoi() |
| Qrcode.php | WeMini\Qrcode | 微信小程序二维码管理 | 微信小程序 | \We::WeMiniCrypt() |
| Template.php | WeMini\Template | 微信小程序模板消息支持 | 微信小程序 | \We::WeMiniTemplate() |
| Total.php | WeMini\Total | 微信小程序数据接口 | 微信小程序 | \We::WeMiniTotal() |
安装使用
----
1.1 通过 Composer 来管理安装
```shell
# 首次安装 线上版本(稳定)
composer require zoujingli/wechat-developer
# 首次安装 开发版本(开发)
composer require zoujingli/wechat-developer dev-master
# 更新 WeChatDeveloper
composer update zoujingli/wechat-developer
```
1.2 如果不使用 Composer, 可以下载 WeChatDeveloper 并解压到项目中
```php
# 在项目中加载初始化文件
include "您的目录/WeChatDeveloper/include.php";
```
2.1 接口实例所需参数
```php
$config = [
'token' => 'test',
'appid' => 'wx60a43dd8161666d4',
'appsecret' => '71308e96a204296c57d7cd4b21b883e8',
'encodingaeskey' => 'BJIUzE0gqlWy0GxfPp4J1oPTBmOrNDIGPNav1YFH5Z5',
// 配置商户支付参数(可选,在使用支付功能时需要)
'mch_id' => "1235704602",
'mch_key' => 'IKI4kpHjU94ji3oqre5zYaQMwLHuZPmj',
// 配置商户支付双向证书目录(可选,在使用退款|打款|红包时需要)
'ssl_key' => '',
'ssl_cer' => '',
// 缓存目录配置(可选,需拥有读写权限)
'cache_path' => '',
];
```
3.1 实例指定接口
```php
try {
// 实例对应的接口对象
$user = new \WeChat\User($config);
// 调用接口对象方法
$list = $user->getUserList();
// 处理返回的结果
echo '<pre>';
var_export($list);
} catch (Exception $e) {
// 出错啦,处理下吧
echo $e->getMessage() . PHP_EOL;
}
```
微信支付
---
```php
// 创建接口实例
$wechat = new \WeChat\Pay($config);
// 组装参数,可以参考官方商户文档
$options = [
'body'
没有合适的资源?快使用搜索试试~ 我知道了~
抖音私信名片,抖音消息卡片,抖音跳转微信 链接跳转引流技术.zip
共1655个文件
php:755个
jpg:421个
png:102个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 4 下载量 159 浏览量
2024-03-23
15:14:46
上传
评论 1
收藏 103.05MB ZIP 举报
温馨提示
抖音私信名片链接跳转"或"抖音私信消息卡片链接"或"抖音私信图文链接"是2022年抖音引流营销技术 可以在抖音APP私信环境下生成卡片链接,支持标题、描述、logo以及跳转落地页的完全自定义配置. 强大独立后台方便快捷控制,统计来路信息,手机型号,来路地区等 支持微信公众号关注以及个人企业微信号跳转到微信客户端app添加,同时也支持任意链接落地页跳转 提高粉丝引流转化率,关注转化率,引流转化率,安全绿色不封号,基于抖音安全规则下生成出xml的图文卡片链接。 平台源码系统采用原创PHP语言开发,搭载MYSQL数据库,多用户注册管理平台,支持多链接独立管理 对应多大15个以上的微信或QQ引流模板风格源码,统计记录,以及C/S端的实时更新更换控制端。 搭建需求:php7.2+Mysql linux-centos 服务器
资源推荐
资源详情
资源评论
收起资源包目录
抖音私信名片,抖音消息卡片,抖音跳转微信 链接跳转引流技术.zip (1655个子文件)
weui.css 577KB
bootstrap.min.css 119KB
weui.min.css 114KB
mui.css 95KB
layui.css 78KB
mui.min.css 74KB
video-js.min.css 39KB
style.css 15KB
layer.css 14KB
layer.css 14KB
iconfont.css 9KB
vitstyle.css 8KB
laydate.css 7KB
common.css 6KB
admin.css 6KB
layer.css 5KB
index.css 3KB
htmlDescriptor.css 3KB
login.css 1KB
code.css 1KB
addons.css 1KB
phpunit.xml.dist 826B
.editorconfig 271B
.editorconfig 131B
iconfont.eot 46KB
glyphicons-halflings-regular.eot 20KB
hiddeninput.exe 9KB
login_head.gif 17KB
loading-0.gif 6KB
loading-2.gif 2KB
loading-1.gif 701B
.gitattributes 70B
.gitignore 87B
.gitignore 71B
.gitignore 42B
.gitignore 37B
.gitignore 34B
.gitignore 30B
.gitignore 29B
.gitignore 27B
.gitignore 14B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.htaccess 1B
icon.html 26KB
list.html 21KB
layout.html 14KB
upload.html 13KB
index.html 10KB
video_bak.html 10KB
video.html 9KB
music.html 9KB
index.html 9KB
addons.html 6KB
edit.html 5KB
index.html 5KB
news.html 4KB
form.html 4KB
index.html 4KB
2fc76c56322c801b7d26ace888e1a6b9025427.html 4KB
3b097f6eccb8e23f6cfb67b2ceff8ab53b0d3f.html 4KB
index.html 3KB
edit_pass.html 3KB
wx_open.html 3KB
index.html 3KB
index.html 3KB
toweixin.html 3KB
index.html 3KB
bindwe.html 3KB
index.html 3KB
admin.html 3KB
yun_update.html 2KB
shop.html 2KB
edit.html 2KB
saoma.html 2KB
main.html 2KB
index.html 2KB
menu.html 1KB
editmenu.html 1KB
update.html 1KB
edit.html 1KB
setnews.html 1KB
edit.html 1KB
index.html 917B
halt_show.html 757B
404.html 479B
h5.html 426B
xieyi.html 188B
index.html 25B
favicon.ico 58KB
e0d4aa898d15d6e10b7abe516ac6fd9918146e.jpeg 653KB
1c5a455ec4f02bc4fc0267df9f2824c4868869.jpeg 157KB
4e358db15a39b408bd4b41e9d87d6a62d313ba.jpeg 56KB
0b49522b1e1362ac950f0cfab03b1fe1f103c5.jpeg 46KB
68addf30e86e1f7cc6d7b9a2f4a05919b46a60.jpg 6.47MB
6faca3e5e8b30d6b081deb80077c0aeb7b4885.jpg 2.78MB
eb48b013d06038339b5789de1c2f9231be1519.jpg 2.1MB
c4a8f3d0754f116c3ed9a3ce75e2f1eddb4c0a.jpg 1.9MB
6ea3d218a98050b6e2927ae6c0a3bdfe8d1b83.jpg 1.62MB
共 1655 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
- 2301_764440912024-03-29我购买了还可以用嘛?
- qq_353561662024-04-22资源简直太好了,完美解决了当下遇到的难题,这样的资源很难不支持~
智慧浩海
- 粉丝: 1w+
- 资源: 5121
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Android源码新基线代码更新的方法
- 1_二级程序设计题(34).rar
- 二级程序调试题(填空27+改错7).docx
- HM2314-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于深度学习的危险驾驶检测算法python源码+视频判断是否闭眼或者张开嘴哈欠和吸烟打电话等手势行为功能涵盖7类.zip
- Free-Fs 开源文件管理系统
- HM2314B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 毕业设计:Python高校学生学业预警系统(源码 + 数据库 + 说明文档)
- HM2312-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 毕业设计:Python的在线自主评测系统(源码 + 数据库 + 说明文档)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功