Download the PHP package abdallahmohammed/alsaad-php without Composer
On this page you can find all versions of the php package abdallahmohammed/alsaad-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdallahmohammed/alsaad-php
More information about abdallahmohammed/alsaad-php
Files in abdallahmohammed/alsaad-php
Package alsaad-php
Short Description PHP Client for using Alsaad's API.
License MIT
Informations about the package alsaad-php
Client Library For PHP
This library requires a minimum PHP version of 7.1
This is the PHP client library for use Alsaad2's API. To use this, you'll need a Alsaad2 account.
- Installation
- Usage
- Examples
Installation
To install the PHP client library to your project, we recommend using Composer.
Usage
If you're using Composer, make sure the autoloader is included in your project's bootstrap file:
Create a client with your Username and Password:
Examples
Sending a Message
To use Alsaad2's SMS API to send an SMS message, call the $client->message()->send()
method.
The API response data can be accessed as array properties of the message.
Accessing Response Data
When things go wrong, you'll receive an Exception. The exception class Alsaad\Client\Exception\Request
support an additional getEntity()
method which you can use in addition to getCode()
and getMessage()
to find out more about what went wrong. The entity returned will typically be an object related to the operation, or the response object from the API call.
All versions of alsaad-php with dependencies
zendframework/zend-diactoros Version ^2.2
php-http/guzzle6-adapter Version ^1.0