k-msalehi / ir-sms
A PHP wrapper for Iranian SMS gateways.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/k-msalehi/ir-sms
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2025-12-27 16:49:57 UTC
README
This package provides an interface to interact with Iranian SMS gateways for sending SMS messages using patterns.
Installation
To install the package, use Composer:
composer require kmsalehi/ir-sms
Configuration
There is a configuration file in config/ir-sms.php with the following structure:
<?php return [ 'debug' => true, 'sms.ir' => [ 'api_key' => 'your_api_key_here', 'username' => 'your_username_here', 'password' => 'your_password_here', ], ];
You can also create a config/ir-sms-local.php file to override the default configuration.
Usage
Sending SMS by Pattern
To send an SMS using a pattern, use the SmsIr class.