zapply / zapply-php
Zapply PHP SDK
1.0.2
2024-04-09 01:15 UTC
Requires
- php: >=8.2
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.47
- mockery/mockery: ^1.6
- pestphp/pest: ^2.31
README
Zapply SDK is a PHP client library for interacting with Zapply.
Requirements
- PHP 8.1 or higher
Installation
Install the SDK using Composer:
composer require zapply/zapply-php
Usage
<?php use Zapply\Zapply; $zapply = new Zapply([ 'base_uri' => 'YOUR DEVICE URL', 'bearer_token' => 'YOUR API KEY', 'channel_id' => 'YOUR DEVICE ID', ]); $response = $zapply->chat('552199999999')->sendMessage([ 'recipient_type' => 'individual', 'type' => 'text', 'message' => [ 'body' => 'Hello World!', ] ])