Download the PHP package mralston/quake-sdk without Composer
On this page you can find all versions of the php package mralston/quake-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mralston/quake-sdk
More information about mralston/quake-sdk
Files in mralston/quake-sdk
Package quake-sdk
Short Description PHP SDK for the Quake API.
License MIT
Homepage https://github.com/mralston/quake-sdk
Informations about the package quake-sdk
Quake SDK
This is PHP SDK for Quake. The Quake platform provides WhatsApp and SMS message flow capabilities useful for recruitment, lead qualification and other automated two-way communication.
Visit the Quake website for more information.
Installation
You can install the package via composer:
Basic Usage
Fluent API
Many of the objects exposed by the API support method chaining.
Webhooks
The Quake platform can send push notifications to your application via webhooks.
In order to use webhooks, your application must be able to respond to the challenge requests sent to it.
Such challenges include a crc_token
which must be combined with a signing key secret in order to send a valid response.
Signing keys can be set up on the Quake website.
The resolveWebhookChallenge()
method on the Quake client will take care of generating this response for you.
All you need to do is provide it with the crc_token
received and send back the response. Here is a basic example:
Laravel
Configuration
In Laravel, you can publish the config file with:
This is the contents of the published config file:
Configure the three environment variables with your username, password and company ID.
These are UUIDs supplied by Quake.
The API endpoint is the base URL of the Quake platform, for example https://www.quake.co.uk
.
Dependency Injection
In addition to the method chaining described in the fluent API section above, the Laravel integration takes care of authentication automatically. All you need to do is grab an instance of the client from the container and start using it.
You can use dependency injection to get a pre-authenticated instance of the client:
Alternatively, you can resolve an instance of the client from the container:
Facade
In true Laravel tradition, you can also use a facade (along with method chaining, of course!).
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Matt Ralston
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of quake-sdk with dependencies
ext-json Version *
giggsey/libphonenumber-for-php Version ^8.12
guzzlehttp/guzzle Version >=6.0
nesbot/carbon Version ^2.0