Download the PHP package jaby/sms without Composer
On this page you can find all versions of the php package jaby/sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sms
Short Description Package for send Iran sms that work with any company
License MIT
Homepage https://github.com/Jaby/Sms
Informations about the package sms
Laravel Sms Services
This is a Laravel Package for Sms Services Integration. This package supports Laravel 5.8+
.
Donate me if you like this package <3
For PHP integration you can use jaby/sms package.
This packages works with multiple drivers, and you can create custom drivers if you can't find them in the current drivers list (below list).
List of available drivers
- ippanel :heavy_check_mark:
- farazsms :heavy_check_mark:
- kavenegar :heavy_check_mark:
-
sms.ir :heavy_check_mark:
- Others are under way.
Help me to add the services below by creating pull requests
- mellipayamak.com
- farapayamak.ir
- ...
All services that work with ippanel can used default service
farazsms
you can create your own custom drivers if it's not exists in the list, read the
Create custom drivers
section.
Install
Via Composer
Configure
If you are using Laravel 5.5
or higher then you don't need to add the provider and alias. (Skip to b)
a. In your config/app.php
file add these two lines.
b. then run php artisan vendor:publish
to publish config/sms.php
file in your config directory.
In the config file you can set the default driver
to use for all your sender. But you can also change the driver at runtime.
Choose what service you would like to use in your application. Then make that as default driver so that you don't have to specify that everywhere. But, you can also use multiple services in a project.
Then fill the credentials for that service in the drivers array.
How to use
available methods:
driver
: set the drivertext
: set the message to send without patternpatten
: set your pattern codedata
: set array of data patternto
: set array of numbers receiversfrom
: set sender numbersend
: send your sms
Examples:
Create custom drivers:
First you have to add the name of your driver, in the drivers array and also you can specify any config parameters you want.
Now you have to create a Driver Map Class that will be used to send sms.
Eg. You created a class: App\Packages\Sms\MyDriver
.
Once you create that class you have to specify it in the sms.php
config file map
section.
Note:- You have to make sure that the key of the map
array is identical to the key of the drivers
array.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.