Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Great to have PHP Wechaty onboard to our Multi-language Wechaty Community! #1

Open
huan opened this issue Jul 9, 2020 · 4 comments

Comments

@huan
Copy link
Member

huan commented Jul 9, 2020

Link to wechaty/wechaty#1927

huan added a commit to wechaty/friday that referenced this issue Jul 9, 2020
@zhangchunsheng
Copy link
Member

zhangchunsheng commented Jul 19, 2020

alpha version, start bot like

$wechaty = \IO\Github\Wechaty\Wechaty::getInstance($token, $endPoint);
$wechaty->onScan(function($qrcode, $status, $data) {
    $qr = \IO\Github\Wechaty\Util\QrcodeUtils::getQr($qrcode);
    echo "$qr\n\nOnline Image: https://wechaty.github.io/qrcode/$qrcode\n";
})->onLogin(function(\IO\Github\Wechaty\User\ContactSelf $user) {
})->onMessage(function(\IO\Github\Wechaty\User\Message $message) {
    $message->say("hello from PHP7.4");
})->start();

@huan
Copy link
Member Author

huan commented Jul 20, 2020

Awesome, great to see our PHP Wechaty for building a chatbot in 6 lines of PHP!

It would be great if we could have a getting start repository like https://github.com/wechaty/python-wechaty-getting-started so that our PHP developers can be easy to get started!

@zhangchunsheng
Copy link
Member

I create a getting start repository https://github.com/wechaty/php-wechaty-getting-started

@huan
Copy link
Member Author

huan commented Jul 23, 2020

Awesome! Would love to play with it later, thank you very much for the efforts for making the pho getting start to be easy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants