Skip to content

ianchadwick/dynmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynmark PHP API

Dynmark are leading providers of SMS and SMS intelligence services allowing you to make your SMS messaging smart.

This package allows you to send text messages using their API.See website

Requirements

PHP 5.4+

Installation using Composer

Add ianchadwick/dynmark to the require part of your composer.json file

"require": {
  "ianchadwick/dynmark": "dev-master"
}

Then update your project with composer

composer update

Basic Usage

use Dynmark\Dynmark;
use Dynmark\Commands\Sms\Send;

class MyClass {
  public function sendSms()
  {
    // init the Dynmark helper
    $dynmark = new Dynmark('myusername', 'mypassword');
    
    // create the command
    $command = new Send($dynmark);

    // set the text details
    $command->setFrom('Ian')
        ->setPhone('0770000000')
        ->setText('Hello there!');
    
    // send the text
    $response = $command->fire();
  }
}

About

Send sms using Dynmark

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages