Download the PHP package tzsk/sms without Composer
On this page you can find all versions of the php package tzsk/sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sms
Short Description Laravel SMS Gateway Integration Package
License MIT
Homepage https://github.com/tzsk/sms
Informations about the package sms
:gift: Laravel SMS Gateway
This is a Laravel Package for SMS Gateway Integration. Now Sending SMS is easy.
List of supported gateways:
- AWS SNS
- Textlocal
- Twilio
- Clockwork
- LINK Mobility
- Kavenegar
- Melipayamak
- Melipayamakpattern
- Smsir
- Tsms
- Farazsms
- Farazsmspattern
- SMS Gateway Me
- SmsGateWay24
- Ghasedak
- Sms77
- SabaPayamak
- LSim
- Rahyabcp
- Rahyabir
- D7networks
- Hamyarsms
- Others are under way.
:package: Install
Via Composer
:zap: Configure
Publish the config file
In the config file you can set the default driver to use for all your SMS. But you can also change the driver at runtime.
Choose what gateway you would like to use for your application. Then make that as default driver so that you don't have to specify that everywhere. But, you can also use multiple gateways in a project.
Then fill the credentials for that gateway in the drivers array.
Textlocal Configuration:
Textlocal is added by default. You just have to change the creadentials in the textlocal
driver section.
AWS SNS Configuration:
In case you want to use AWS SNS. Then you have to pull a composer library first.
Clockwork Configuration:
In case you want to use Clockwork. Then you have to pull a composer library first.
Twilio Configuration:
In case you want to use Twilio. Then you have to pull a composer library first.
Then you just have to change the creadentials in the twilio
driver section.
Melipayamak or Melipayamakpattern Configuration:
In case you want to use Melipayamak or Melipayamakpattern, Then you have to pull a composer library first.
Kavenegar Configuration:
In case you want to use Kavenegar. Then you have to pull a composer library first.
SMS Gateway Me Configuration:
In case you want to use SMS Gateway Me. Then you have to pull a composer library first.
:fire: Usage
In your code just use it like this.
:heart_eyes: Channel Usage
First you have to create your notification using php artisan make:notification
command. then SmsChannel::class
can
be used as channel like the below:
Tip: You can use the same Builder Instance in the send method.
Custom Made Driver, How To:
First you have to name your driver in the drivers array ,and also specify any config params you want.
Now you have to create a Driver Map Class that will be used to send the SMS. In your driver, You just have to
extend Tzsk\Sms\Contracts\Driver
.
Ex. You created a class : App\Packages\SMSDriver\MyDriver
.
Once you crate 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.
:microscope: Testing
:date: Changelog
Please see CHANGELOG for more information on what has changed recently.
:heart: Contributing
Please see CONTRIBUTING for details.
:lock: Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
:crown: Credits
- Kazi Ahmed
- All Contributors
:policeman: License
The MIT License (MIT). Please see License File for more information.
All versions of sms with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0