Download the PHP package mistcheng/sowechat without Composer

On this page you can find all versions of the php package mistcheng/sowechat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sowechat

Wechat(WeiXin) Web Api Based On Laravel PHP Framework

中文文档:基于Laravel PHP框架的微信网页版Api

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Features

  1. 7*24hours no-end running,
  2. easy to use, support sending/receiving multi type messages
  3. graceful system architecture, support cross platform development and flexible custom extensions
  4. support Restful Api, async message processing andmessage event broadcasting
  5. based on Php, the best language in The World! :)

System Architecture

System Architecture

  1. This System is composed of 3 independent components
  2. The Middle component is core of The System, doing qrcode scan & message listening; I do a lot of work for pupose of robust. Meantime, as a connector, it supports message-sending ability for the Left component, and pushs simple-formated message to the Right component. Run command php artisan wechat:listen to make it working.
  3. TheLeftcomponent is used for sending message, the user can send message to any friends in his code. class App\Console\Commands\WechatSend is a sample, run commandphp artisan wechat:send to make it working.
  4. TheRightcomponent is used for processing message, the user can do anything for the coming message. The jobApp\Jobs\ProcessWechatMessage process each message into more formatted message(text,share,image,voice,file, etc). Next, It fires the App\Events\WechatMessageEvent event to the subscribers, who can do some custom things with the message. class App\Listeners\SaveWechatMessageListener is a sample that saving the message into the DB.
  5. Advantage: The three components are 3 independent Process. this can grantee the non-ending running of the Middle part, at the same time, the user can do any extensions in the Left and Right part without disturbing the Middle part.

Prerequisite

  1. php 5.6 or more
  2. php composer
  3. redis (optional)
  4. mysql (optional)

Usage

1. Installation

2. Configration

2.1 config/wechat.php is wechat config file

2.2 Queue Configuration (Recommend database or redis, never use async)

In section2.1, the optionwechat.job.connection should be configured in the file config/database.php.

2.2.1 if set wechat.job.connectionwithdatabase, the option database.connections.mysqlmust be configured correctly
2.2.2 if set wechat.job.connectionwithredis, the option database.redisshould be configured properly.

2.3 Running

2.3.1 First time, init DB script
2.3.2 Run the Middlecomponent for new

There will be a new qrcode in the folder storage/app/wechat, use your wechat scaning it to login.

2.3.3 Run the Middlecomponent without re-login

Run the command without passing argument --new

2.3.4 Processing wechat message

See JobApp\Jobs\ProcessWechatMessage and sample class App\Listeners\SaveWechatMessageListener for more detail.

2.3.5 Sending wechat message (Console)

See class App\Console\Commands\WechatSend for more detail.

2.3.6 Sending wechat message (Web Api)

When you call the api, you must start the web server. The easiest way is start a mini server with the command above. Also, you can deploy you code use Apache Nginx etc

there has some examples, this will return a json response {'ret':0, 'message':'xxx'}, success if the ret equals 0

OpenSource

MIT

Statement

This software shall not be used for commercial purposes only


All versions of sowechat with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version 5.3.*
predis/predis Version ~1.0
guzzlehttp/guzzle Version ~6.0
barryvdh/laravel-ide-helper Version ~2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mistcheng/sowechat contains the following files

Loading the files please wait ....