Download the PHP package wechaty/php-wechaty without Composer

On this page you can find all versions of the php package wechaty/php-wechaty. 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 php-wechaty

php-wechaty

Packagist PHP Version Support PHP

PHP Wechaty

PHP Wechaty Getting Started Wechaty in PHP

Read code

Connecting Chatbots

Powered by Wechaty

Wechaty is a Conversational SDK for Chatbot Makers that can help you create a bot in 8 lines of PHP

Voice of the Developers

"Wechaty is a great solution, I believe there would be much more users recognize it." link
@Gcaufy, Tencent Engineer, Author of WePY

"太好用,好用的想哭"
@xinbenlv, Google Engineer, Founder of HaoShiYou.org

"最好的微信开发库" link
@Jarvis, Baidu Engineer

"Wechaty让运营人员更多的时间思考如何进行活动策划、留存用户,商业变现" link
@lijiarui, Founder & CEO of Juzi.BOT.

"If you know js ... try Wechaty, it's easy to use."
@Urinx Uri Lee, Author of WeixinBot(Python)

See more at Wiki:Voice Of Developer

Join Us

Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code php wechaty, join our Wechaty PHP Developers' Home.

Wechaty Friday.BOT QR Code

Scan now, because other Wechaty PHP developers want to talk with you too! (secret code: php wechaty)

Getting Started

1. Docker

Docker Pulls Docker Layers

PHP Wechaty Docker supports PHP Script.

2.1. Run php script

Learn more about Wechaty Docker at Wiki:Docker.

New environment variables

  1. WECHATY_PUPPET_SERVICE_TLS_CA_CERT: can be overwrite by options.tlsRootCert. Set Root CA Cert to verify the server or client.

For Puppet Server:

Environment Variable Options Description
WECHATY_PUPPET_SERVICE_TLS_SERVER_CERT options.tls.serverCert Server CA Cert (string data)
WECHATY_PUPPET_SERVICE_TLS_SERVER_KEY options.tls.serverKey Server CA Key (string data)
WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVER options.tls.disable Set true to disable server TLS

For Puppet Client:

Environment Variable Options Description
WECHATY_PUPPET_SERVICE_AUTHORITY options.authority Service discovery host, default: api.chatie.io
WECHATY_PUPPET_SERVICE_TLS_CA_CERT options.caCert Certification Authority Root Cert, default is using Wechaty Community root cert
WECHATY_PUPPET_SERVICE_TLS_SERVER_NAME options.serverName Server Name (mast match for SNI)
WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT options.tls.disable Set true to disable client TLS

Learn more about tls at https://github.com/wechaty/puppet-service

The World's Shortest PHP ChatBot: 8 lines of Code

php

PHP Wechaty Developing Plan

We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to PHP because wechaty has only 3,000 lines of the TS code, they are well designed and de-coupled by the wechaty-puppet abstraction. So after we have translated those 3,000 lines of TypeScript code, we will almost be done.

As we have already a ecosystem of Wechaty in TypeScript, so we will not have to implement everything in PHP, especially, in the Feb 2020, we have finished the @chatie/grpc service abstracting module with the wechaty-puppet-service implmentation.

The following diagram shows out that we can reuse almost everything in TypeScript, and what we need to do is only the block located at the top right of the diagram: Wechaty (PHP).

Example: How to Translate TypeScript to PHP

There's a 100 lines class named Image in charge of downloading the WeChat image to different sizes.

It is a great example for demonstrating how do we translate the TypeScript to PHP in Wechaty Way:

Image Class Source Code

If you are interested in the translation and want to look at how it works, it will be a good start from reading and comparing those two Image class files in TypeScript and PHP at the same time.

To-do List

Wechaty Internal Modules

  1. [ ] Class Wechaty
  2. [ ] Class Contact
  3. [ ] Class ContactSelf
  4. [ ] Class Message
  5. [ ] Class Room
  6. [ ] Class Image
  7. [ ] Class Accessory
  8. [ ] Class Config
  9. [ ] Class Favorite
  10. [ ] Class Friendship
  11. [ ] Class MiniProgram
  12. [ ] Class RoomInvitation
  13. [ ] Class Tag
  14. [ ] Class UrlLink

Wechaty External Modules

  1. [ ] Class FileBox
  2. [ ] Class MemoryCard
  3. [ ] Class WechatyPuppet
  4. [ ] Class WechatyPuppetService

Usage

WIP...

docker

Requirements

  1. PHP 7.4+

Install

pecl安装

CentOS yum安装

Yac enable

composer

test

Development

See Also

PHP for Node.js Developer

History

master

v0.0.1 (Jul 09, 2020)

  1. Project created.
  2. Welcome our first PHP Wechaty contributor:

Related Projects

Badge

Wechaty in PHP

Contributors

  1. @zhangchunsheng - Chunsheng Zhang (张春生)

Creator

Copyright & License


All versions of php-wechaty with dependencies

PHP Build Version
Package Version
No informations.
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 wechaty/php-wechaty contains the following files

Loading the files please wait ....