mikechip / apimessenger
This package is abandoned and no longer maintained.
No replacement package was suggested.
api-messenger.com PHP SDK
1.1.0
2019-04-27 07:16 UTC
Requires
- php: >=7.2
- ext-curl: ^7.2
- ext-json: ^1.6
This package is auto-updated.
Last update: 2024-06-24 00:45:15 UTC
README
Deprecated
The library was made quite a while ago and may be out of date. Please make a fork if you want to use it.
API-Messenger SDK
Library making work with api-messenger.com easier
Installation
Just download src/apimessenger.php or use Composer:
composer require mikechip/apimessenger
Create instance
$api = new Mike4ip\ApiMessenger( '_token_' // api-messenger.com token );
Get QR code
Proxying via PHP:
header('Content-Type: image/png');
readfile( $api->getQRCode() );
Or show directly:
<img src="<?=$api->getQRCode();?>" />
Send message
$result = $api->sendPhoneMessage('+12345', 'It works!'); print( ($result['status'] == 'OK') ? 'Message sent' : 'Fail' );
Feedback
Use Issues to contact me