Git Product home page Git Product logo

think-wechat's Introduction

Latest Stable Version Latest Unstable Version License

think-wechat

企业微信SDK for ThinkPHP5,基于 pithyone/wechat

理论上支持 ThinkPHP 5.1.x 所有版本

安装

composer require piccscy/think-wechat

配置

  1. 创建配置文件

vendor/piccscy/think-wechat/src/config.php 拷贝至应用配置目录,然后重命名为 wework.php

  1. provider.php 绑定类库
return [
    // ...
    'wework' => \think\WeWork::class,
];

用法

以获取 access_token 为例:

app('wework')->get('token')->get();

使用其他应用时,改变默认设置即可,假设有一个测试应用为 test

app('wework', ['test'], true)->get('token')->get();

更多用法请参考:https://pithyone.github.io/wechat/

License

MIT

think-wechat's People

Contributors

pithyone avatar piccscy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.