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 A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.
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 and reliable.
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 configuration file:
In the configuration file, you can set the default driver to use for sending your SMS messages. However, you can also seamlessly change the driver at runtime.
Choose the gateway you would like to use for your application. Then, set it as the default driver so that you do not have to specify it every time. You can also configure and use multiple gateways within the same project.
Then fill the credentials for that gateway in the drivers array.
Textlocal Configuration:
Textlocal is added by default. You simply need to update the credentials in the textlocal driver section.
AWS SNS Configuration:
If you want to use AWS SNS, you must install the required composer library first:
Clockwork Configuration:
If you want to use Clockwork, you must install the required composer library first:
Twilio Configuration:
If you want to use Twilio, you must install the required composer library first:
Then, simply update the credentials in the twilio driver section.
Melipayamak or Melipayamakpattern Configuration:
If you want to use Melipayamak or Melipayamakpattern, you must install the required composer library first:
Kavenegar Configuration:
If you want to use Kavenegar, you must install the required composer library first:
SMS Gateway Me Configuration:
If you want to use SMS Gateway Me, you must install the required composer library first:
:fire: Usage
You can easily send SMS messages in your application code like this:
Runtime Configuration
You can override the default gateway configuration at runtime:
:heart_eyes: Channel Usage
First, you need to create your notification using the php artisan make:notification command. Then, the SmsChannel::class can
be used as a notification channel like below:
Tip: You can use the same Builder Instance in the send method.
Custom Made Driver, How To:
First, you must define the name of your driver in the drivers array and specify any configuration parameters you need.
Next, you need to create a Driver Map Class that will be used to handle sending the SMS. Your driver class simply needs to
extend Tzsk\Sms\Contracts\Driver.
For example, if you created a class: App\Packages\SMSDriver\MyDriver.
Once you create this class, you must specify it in the sms.php configuration file under the map section.
Note:- Ensure that the key of the map array is exactly 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.8
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0