Download the PHP package craftivelabs/ci4-syncraft without Composer
On this page you can find all versions of the php package craftivelabs/ci4-syncraft. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download craftivelabs/ci4-syncraft
More information about craftivelabs/ci4-syncraft
Files in craftivelabs/ci4-syncraft
Download craftivelabs/ci4-syncraft
More information about craftivelabs/ci4-syncraft
Files in craftivelabs/ci4-syncraft
Vendor craftivelabs
Package ci4-syncraft
Short Description CodeIgniter 4 library for Syncraft WhatsApp Gateway API
License MIT
Package ci4-syncraft
Short Description CodeIgniter 4 library for Syncraft WhatsApp Gateway API
License MIT
Please rate this library. Is it a good library?
Informations about the package ci4-syncraft
ci4-syncraft
CodeIgniter 4 library for Syncraft WhatsApp Gateway API.
Installation
Usage
💡 See EXAMPLES.md for comprehensive code examples of every Syncraft API function.
Connection
Send Messages
Broadcasts
Metadata
Webhook
Syncraft sends HTTP callbacks for events registered in your dashboard:
- Incoming message (
message.received) - Outgoing message (
message.sent) - Connection status (
device.connected/device.disconnected)
Implement the Handler interface to process callbacks:
Webhook DTOs:
| DTO | Event | Properties |
|---|---|---|
WebhookEvent |
all | event, deviceId, timestamp, data |
MessageData |
message.received / message.sent |
messageId, from, messageType, content, timestamp, isGroup, isFromMe |
DeviceData |
device.connected / device.disconnected |
jid (nullable), status |
WebhookEvent has helper methods: isMessageReceived(), isMessageSent(), isDeviceConnected(), isDeviceDisconnected(), toMessageData(), toDeviceData().
DTOs
All API responses are returned as typed DTOs (Data Transfer Objects):
| DTO | Properties |
|---|---|
QRCode |
qrCode |
PairingCode |
pairingCode |
ConnectionStatus |
deviceId, isConnected, jid, status |
SentMessage |
messageId, status, to |
BroadcastResult |
id, name, status, totalCount, createdAt |
BroadcastDetail |
id, name, status, totalCount, sentCount, failedCount, recipients |
GroupList |
groups (array of Group), total |
Group |
jid, name, topic, ownerJid, isLocked, isAnnounce, participants |
ChannelList |
channels (array of Channel), total |
Channel |
jid, name, description |
NumberCheck |
isRegistered, jid |
BulkNumberCheck |
results (array of NumberCheck) |
Requirements
- PHP 7.4+
- CodeIgniter 4 (optional — library is framework-agnostic)
- Guzzle 7+
Testing
All versions of ci4-syncraft with dependencies
PHP Build Version
Package Version
The package craftivelabs/ci4-syncraft contains the following files
Loading the files please wait ...