Download the PHP package mahoujas/smsowl without Composer

On this page you can find all versions of the php package mahoujas/smsowl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package smsowl

Sms Owl PHP Wrapper

This package is wrapper of Sms Owl REST API hosted at https://smsowl.in. Sms Owl provides transactional and promotional SMS Gateway services.

Installing Sms Owl library

You can download library in two ways.

  1. Using composer.
  2. Download PHP file directly.

1. Using Composer

Install composer in your project. Skip this step if you already have composer.

curl -sS https://getcomposer.org/installer | php

a. Install the library using either following command

 php composer.phar require mahoujas/smsowl

b. Or by adding library to composer.json and running update command

{
    "require": {
        "mahoujas/smsowl": "^1.0.0"
    }
}

php composer.phar update

Autoload the classes. Skip this step if you already done it.

require 'vendor/autoload.php';

2. Download PHP library directly

Download PHP library directly from this link

Include download file in your project.

include("/path-to-file/smsowl.php");

Use namespaces

After you have downloaded and included library using either of above method, use the following namespace to access the class.

use Mahoujas\SmsOwl\SmsOwl;
use Mahoujas\SmsOwl\SmsType;

Initialize the object

Credentials should be configured before sending SMS. Credential should be passed as constructor argument for SmsOwlClient constructor

$smsOwl = new SmsOwl("YOUR-ACCOUNT-ID", "YOUR-API-KEY");

Sending promotional SMS

sendPromotionalSms(senderId,to,message,smsType)

Return value is Sms Id for single SMS or array of SMS ids for Bulk Sms

sendPromotionalSms(senderId,to,message)

Same as above but smsType defaults to SmsType::NORMAL

Sending Transactional SMS

sendTransactionalSms(senderId,to,templateId,placeholderArray);

Lets assume templateId of 39ec9de0efa8a48cb6e60ee5 with following template.

Hello {customerName}, your invoice amount is Rs. {amount}.

-

try{
    $smsId  = $smsOwl->sendTransactionalSms("TESTER", "+919876543210", "39ec9de0efa8a48cb6e60ee5",array('customerName' => 'Bob', 'amount' => '200' });
    //Process smsid if needed.
}
}catch(Exception $e){
    //Handle exception
}

Return value is Sms Id.


All versions of smsowl with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mahoujas/smsowl contains the following files

Loading the files please wait ....