2017 © Pedro Peláez
 

library itexmo

iTexMo API for Laravel.

image

woenel/itexmo

iTexMo API for Laravel.

  • Wednesday, August 1, 2018
  • by woenel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

iTexMo

iTexMo API for Laravel., (*1)

Packagist, (*2)

Installation

Install using Composer, (*3)

$ composer require woenel/itexmo "^0.3"

Publish the config file named itexmo.php and set the iTexMo API code., (*4)

$ php artisan vendor:publish --provider="Woenel\Itexmo\ItexmoServiceProvider"

Usage

Send a Message

These are the three methods you can use to send a message:, (*5)

1. Using facade
use Itexmo;

$res = Itexmo::to('09123456789')->message('Hello World!')->send();

if($res == '0') {
  // Success message or logic. Refer to the return codes below.
}
2. Instantiating class
use Woenel\Itexmo;

$itexmo = new Itexmo;

$res = $itexmo->to('09123456789')->message('Hello World!')->send();

if($res == '0') {
  // Success message or logic. Refer to the return codes below.
}
3. Instantiating class (one-by-one)
use Woenel\Itexmo;

$itexmo = new Itexmo;

$itexmo->to = '09123456789';
$itexmo->message = 'Hello World!';
$itexmo->send();

if($itexmo->result == '0') {
  // Success message or logic. Refer to the return codes below.
}

You can choose any of them. Either way should work., (*6)

Return codes

  • "0" = Success! Message is now on queue and will be sent soon.
  • "1" = Invalid number.
  • "2" = Number prefix not supported. Please contact us so we can add.
  • "3" = Invalid ApiCode.
  • "4" = Maximum Message per day reached. This will be reset every 12:00AM.
  • "5" = Maximum allowed characters for message reached.
  • "6" = System offline.
  • "7" = Expired ApiCode.
  • "8" = iTexMo Error. Please try again later.
  • "9" = Invalid function parameters.
  • "10" = Recipient's number is blocked due to flooding, message was ignored.
  • "11" = Recipient's number is blocked temporarily due to hard sending and the message was ignored.
  • "12" = Invalid request. You can't set message priorities on non corporate apicodes.
  • "13" = Invalid or not registered custom sender ID.

Features

Implemented features

  • [x] Send a Message
  • [x] Check API Service Status and your SMS Server Status (Not in Usage/Documentaion as of the moment, will provide soon)
  • [x] Check ApiCode Info and Status (Not in Usage/Documentaion as of the moment, will provide soon)

Planned features

  • [ ] Show Pending or Outgoing SMS
  • [ ] Delete All Pending or Outgoing SMS
  • [ ] Queue a Message (Send a message by queueng)

The Versions

01/08 2018

dev-master

9999999-dev

iTexMo API for Laravel.

  Sources   Download

MIT

The Requires

 

01/08 2018

v0.3

0.3.0.0

iTexMo API for Laravel.

  Sources   Download

MIT

The Requires

 

30/07 2018

v0.1

0.1.0.0

iTexMo API for Laravel.

  Sources   Download

MIT

The Requires