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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sms-api

SMS API Library

A comprehensive PHP library for sending SMS messages through various Iranian SMS providers.

PHP Version

Overview

This package provides a unified interface for sending SMS messages through different SMS gateways/providers in Iran. It follows SOLID principles with a clean architecture pattern that allows you to easily switch between different SMS service providers.

Features

Supported Providers

Provider sendSMS Pattern Credit Receive SMS Status
FarazSMS
SMS.ir
FaraPayamak
Payamito
MedianaSMS
Elanak (SOAP)
Melipayamak

Requirements

Installation

Install the package via Composer:

Configuration

Copy the example environment file and configure your credentials:

Edit .env and fill in your actual API credentials. Never commit the .env file to version control!

Environment Variables

Required variables for Melipayamak:

Basic Usage

Response Format

All methods return a standardized response array:

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):

Real-world example with Melipayamak:

4. Check Account Credit

5. Get Message Delivery Status

6. Receive Incoming SMS

Provider-Specific Configuration

FarazSMS

SMS.ir

FaraPayamak / Payamito

Elanak

MedianaSMS

Melipayamak

⚠️ Important: Melipayamak uses ApiKey authentication, not your account password. Get the ApiKey from your panel's "توسعه‌دهندگان" (Developers) menu.

Melipayamak Pattern SMS Example

Switching Between Providers

One of the main advantages of this library is the ability to easily switch between different SMS providers:

Architecture

This library uses a clean architecture pattern:

Error Handling

The library provides detailed error information:

Common error codes:

Testing

Manual Testing

Run the manual test suite (after configuring credentials in .env):

The test file includes examples for all providers.

Automated Unit Tests

We provide comprehensive PHPUnit tests for all providers:

Note: Integration tests require valid API credentials in your .env file. See .env.example for the required format.

Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request

Code Style

Security

For detailed security guidelines, see SECURITY.md.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Sayyed Jamal Ghasemi
📧 [email protected]
🔗 LinkedIn


All versions of sms-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
ext-soap Version *
vlucas/phpdotenv Version ^5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jamal13647850/sms-api contains the following files

Loading the files please wait ...