Download the PHP package davaxi/allmysms without Composer
On this page you can find all versions of the php package davaxi/allmysms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package allmysms
AllMySMS
A PHP Client library for accesing AllMySMS APIs. Used official documentation : https://www.allmysms.com/_documents/api/http/AllMySMS_DocTechnique_Api_HTTP.pdf
Installation
This page contains information about installing the Library for PHP.
Requirements
- PHP version 5.3.0 or greater (including PHP 7)
Obtaining the client library
There are two options for obtaining the files for the client library.
Using Composer
You can install the library by adding it as a dependency to your composer.json.
Cloning from GitHub
The library is available on GitHub. You can clone it into a local repository with the git clone command.
What to do with the files
After obtaining the files, ensure they are available to your code. If you're using Composer, this is handled for you automatically. If not, you will need to add the autoload.php
file inside the client library.
Usage
Initialize client
For Send SMS
For Send MMS
For Send Email
<?php
// ...
// MMS
$service = new Davaxi\AllMySMS\Service\Message\OutGoing($client);
$email = new \Davaxi\ALlMySMS\Model\Email();
// Required
$email->setFrom('[email protected]');
$email->setRecipient('[email protected]');
$email->setSubject('My Subject');
$email->setContentHtml('My HTML content');
// Optional
$email->setFrom('[email protected]', 'myAlias');
$email->setAlias('myAlias');
$email->setDate('+ 1 hour');
// or
$email->setDate('2017-09-01 00:00:00');
$email->setContentText('My Text content');
$email->setCampaignName('My Campaign Name');
$email->setReplyTo('[email protected]');
// Send Email
$service->sendEmail($email);