mastani/laravel-sorna-sms

Sorna SMS laravel integration

v1.1.0 2018-10-10 18:21 UTC

This package is auto-updated.

Last update: 2024-11-13 06:53:55 UTC


README

Only available for sornasms.net users

Sorna SMS laravel client

Installation in Laravel 5.5 and up

$ composer require mastani/laravel-sorna-sms

Run the command below to publish the package config file config/sornasms.php:

php artisan vendor:publish

The package will automatically register itself.

Installation in Laravel 5.4

$ composer require mastani/laravel-sorna-sms

Next up, the service provider must be registered:

// config/app.php

'providers' => [
    ...
    mastani\SornaSMS\SornaSMSServiceProvider::class,
];

Usage

$sms = new SornaSMS();
$result = $sms->getSystemCredit(); // return Array( [success] => 1 [result] => 105000 )
$result = $sms->sendSMS('mobile number', 'message'); // return Array( [success] => 1 [result] => 8830401037900810478 )

Function

Error messages

License

The MIT License (MIT). Please see License File for more information.