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.

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

Requirements

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:

  1. Fork the repository
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
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 ....