2017 © Pedro Peláez
 

library swxbot

weixin web login and tasks

image

sjdskl/swxbot

weixin web login and tasks

  • Monday, July 30, 2018
  • by sjdskl
  • Repository
  • 1 Watchers
  • 2 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 56 % Grown

The README.md

swxbot a weixin client

Guzzle is php weixin client that can login and send message and do something you want, (*1)

  • Sample login weixin
#create and add logininfo
$swxbot = new swxbot\Core\WeChat(swxbot\Library\Login\Logininfo::getInstance());
#show qrcode
$swxbot->showQrCode();
#login
$swxbot->login();
  • multi process
#create process
$process = new swxbot\Library\Progress\ProgressPcntl();
#run background
$process->runBackground();
#create new process to run your code
$process->run(function () use ($swxbot) {
    echo "i am sjdskl1\n";
}, 'swxbot-process1');
$process->run(function () use ($swxbot) {
    echo "i am sjdskl2\n";
}, 'swxbot-process2');
  • tasks
#use process run tasks, your task need extends abstractTasks
$process->runTask(new \Library\Tasks\TzgLog($swxbot), 
array(
    'php-act-root-dir' => '/opt/web-data/php-act',
    'sleep_time' => 5,
    'monitor_files' => array('sql_error')
), 
'swxbot-log-notify');
  • listen message helper
#you can user helper to handle the message
$helper = new swxbot\Library\Helper\ListenMessageHelper();
$helper->add('test', new swxbot\Library\ListenMessage\TestListenMessage());
$helper->add('test2', new swxbot\Library\ListenMessage\TestListenMessage2());
$swxbot->setListenHelper($helper);
$process->runBackground();
$process->run(function () use ($swxbot) {
    $swxbot->listenMessage();
}, 'swxbot-listen-message');

The Versions

30/07 2018

dev-master

9999999-dev

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

30/07 2018

0.2.4

0.2.4.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

29/05 2018

0.2.3

0.2.3.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

29/05 2018

0.2.2

0.2.2.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

05/02 2018

0.2.1

0.2.1.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

14/04 2017

0.2.0

0.2.0.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

13/04 2017

0.1.0

0.1.0.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

12/04 2017

0.04

0.04.0.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

12/04 2017

0.03

0.03.0.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

11/04 2017

0.02

0.02.0.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx

11/04 2017

0.01

0.01.0.0

weixin web login and tasks

  Sources   Download

The Requires

 

The Development Requires

progress weixin wx