Download the PHP package jamal13647850/sms-api without Composer
On this page you can find all versions of the php package jamal13647850/sms-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jamal13647850/sms-api
More information about jamal13647850/sms-api
Files in jamal13647850/sms-api
Package sms-api
Short Description A unified PHP library for sending SMS messages through various Iranian SMS providers
License MIT
Informations about the package sms-api
SMS API Library
A comprehensive PHP library for sending SMS messages through various Iranian SMS providers.
Overview
This package provides a unified interface for sending SMS messages through different SMS gateways/providers in Iran. It follows SOLID principles with a simple adapter pattern that allows you to easily switch between different SMS service providers.
Supported Providers
- FarazSMS
- SMSir
- FaraPayamak
- Payamito
- Elanak
- MedianaSMS
Requirements
- PHP 8.0 or higher
- curl extension enabled
Installation
Install the package via Composer:
Basic Usage
Features
1. Send SMS to a Single Number
2. Send SMS to Multiple Numbers
3. Send SMS Using Predefined Patterns
Some providers support pattern-based messages (templates):
Note: The pattern ID (12345 in this example) and parameter format may vary between providers.
4. Check Account Credit
Provider-Specific Configuration
FarazSMS
SMSir
FaraPayamak / Payamito
Elanak
MedianaSMS
Switching Between Providers
One of the main advantages of this library is the ability to easily switch between different SMS providers:
Error Handling
Most methods return an array with status information:
Advanced Usage
Working with Response Data
Different providers return different response formats. The library standardizes these responses, but provider-specific details may still be available:
Contributing
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of sms-api with dependencies
ext-curl Version *
ext-json Version *