All Projects → yingouqlj → MiniProgram-lite

yingouqlj / MiniProgram-lite

Licence: MIT license
微信小程序php后端接口轻量版(wechat mini program sdk 项目名称不带wechat是不是不会被人发现的😆)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to MiniProgram-lite

Listen Now
Listen-now, 提供了多音乐平台的音乐搜索、播放、歌单播放、同步平台歌单到本地数据库,并计划开发智能音乐推荐系统。listen-now主要由学生层级的同学一起开发。
Stars: ✭ 139 (+297.14%)
Mutual labels:  wechat-app
Wechatchatroomhelper
微信群消息助手(代码可读性较低,正在优化中)
Stars: ✭ 211 (+502.86%)
Mutual labels:  wechat-app
etym
English Etymology application
Stars: ✭ 86 (+145.71%)
Mutual labels:  wechat-app
Fundcharts
轻量级canvas数据可视化组件库(可在web移动端、微信小程序、服务端nodejs运行)。包含折线图/面积图、饼图/环形图、柱状图、雷达图(蜘蛛图),散点图,K线图,组合图,持续更新及维护。
Stars: ✭ 143 (+308.57%)
Mutual labels:  wechat-app
Wechatapp Netease cloudmusic
小程序模仿——网易云音乐
Stars: ✭ 175 (+400%)
Mutual labels:  wechat-app
Wechat jump game
微信《跳一跳》Python 辅助
Stars: ✭ 13,880 (+39557.14%)
Mutual labels:  wechat-app
Payment Spring Boot
微信支付V3,微信优惠券,代金券、公众号支付、微信小程序支付
Stars: ✭ 131 (+274.29%)
Mutual labels:  wechat-app
wxapplet-canvas-demo
用微信小程序的canvas做的一个小游戏
Stars: ✭ 72 (+105.71%)
Mutual labels:  wechat-app
Nxdc Milktea
一套仿奈雪の茶小程序的前端模板
Stars: ✭ 198 (+465.71%)
Mutual labels:  wechat-app
Weapp
🐧 微信小程序组件和功能封装,基于微信Component自定义组件开发
Stars: ✭ 235 (+571.43%)
Mutual labels:  wechat-app
Ewa
Enhanced Wechat App Development Toolkit (微信小程序增强开发工具)。不同于 wepy 或者 mpvue,是一个轻量级小程序开发框架。支持原生小程序所有功能,无需学习,极易上手。支持转换为百度/字节跳动/QQ小程序。
Stars: ✭ 160 (+357.14%)
Mutual labels:  wechat-app
Weapp Jump
跳一跳 小程序 源码
Stars: ✭ 173 (+394.29%)
Mutual labels:  wechat-app
Wxapp Scalc
💬微信小程序版简易计算器demo,适合入门练手
Stars: ✭ 230 (+557.14%)
Mutual labels:  wechat-app
Ezchat
基于网易云信 IM SDK for Android,界面仿造QQ和微信,打造的一款简单的即时通讯 APP,目前可实现好友添加,个人资料修改,基础聊天功能(包括文字,表情,语音,视频,图片和位置信息发送接收功能),Based on Netease cloud letter IM SDK for Android, the interface mimics QQ and WeChat, to create a simple instant messaging APP, which can be realized by adding friends, modifying personal information, basic chatting functions (including text, emoticons, voice, video, Location information send and receive function).
Stars: ✭ 140 (+300%)
Mutual labels:  wechat-app
wxapp-weathermin
💬微信小程序-迷你天气 demo
Stars: ✭ 22 (-37.14%)
Mutual labels:  wechat-app
Wechat App Demo
📱微信小程序 demo
Stars: ✭ 1,678 (+4694.29%)
Mutual labels:  wechat-app
Wechat Weapp Grouputils
微信小程序群应用,包括群通知、群接龙、群投票、群通讯录4大功能
Stars: ✭ 222 (+534.29%)
Mutual labels:  wechat-app
PopRun
跑鸭:这是我的毕业设计,“跑鸭”微信小程序-一款基于校园跑步的社交小程序(实时里程配速、运动路径、整公里提醒、周榜月榜、打卡分享、热门推荐、线上活动、勋章墙、隐私设置),技术栈:Vant-Weapp UI、Laravel+MySQL
Stars: ✭ 64 (+82.86%)
Mutual labels:  wechat-app
CatToolBox
猫咪工具箱小程序 微信小程序
Stars: ✭ 20 (-42.86%)
Mutual labels:  wechat-app
Weapp Ssha
企业官网 小程序 源码
Stars: ✭ 233 (+565.71%)
Mutual labels:  wechat-app

miniProgram-lite

微信小程序php后端接口轻量版

####初衷: 好用的微信SDK一大堆,已经没有自己写了。
但是好用的SDK大而全,依赖也大。对于业务很小的应用着实有点浪费。
当时业务需求,顺势做小程序,但是实际后端的接口用量很小,所以打算用到的接口自己包一下。
再然后,就打算拆出来分享出来。

##安装:

composer require yingouqlj/wechat-mini-program-lite

##基本使用:

<?php

use Yingou\MiniProgram\MiniProgram;
$config=[
    'appId' => 'appid',
    'secret' => 'secret'
    ];
$program=new MiniProgram($config);
//创建Qrcode
$program->createQrCode->create('/page?id=1',120);

##建议用法: 增加个配置继承Config
在里面实现 token 的读写覆盖原有方法

<?php

class ProgramConfig extends \Yingou\MiniProgram\Config{
    public function getAccessToken()
    {
        //覆盖掉原来的方法在这里 读取token
    }
     public function setAccessToken($token, $expires = 0)
     {
          //覆盖写入 如 redis      
     }   
}

use Yingou\MiniProgram\MiniProgram;
$program=new MiniProgram(new ProgramConfig());
$program->createQrCode->create('/page?id=1',120);

##接口

####进度 先立项,慢慢完善。后面也会考虑引入其他依赖包。第一版是轻巧。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].