ikerlin / laravel-wechat-jssdk
There is no license information available for the latest version (1.0.1) of this package.
laravel wechat js-sdk
1.0.1
2018-11-14 03:04 UTC
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2024-04-26 06:48:17 UTC
README
use WechatDev\WechatJSSDK; Route::get('/', function () { //default $signPackage = WechatJSSDK::set("your_appid","your_appsecrect")->getSignPackage(); //or specify share link $signPackage = WechatJSSDK::set("your_appid","your_appsecrect") ->setShareLink('https://google.com') ->getSignPackage(); //or add protocol and hostname automatically $signPackage = WechatJSSDK::set("your_appid","your_appsecrect") ->setShareLink('/test',true) //https://hostname/test ->getSignPackage(); return view('welcome',["signPackage"=>$signPackage]); });