Download the PHP package gosms-ge/sms-sdk without Composer

On this page you can find all versions of the php package gosms-ge/sms-sdk. 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-sdk

GoSMS.ge PHP SDK

Tests Latest Stable Version License

Official PHP SDK for the GoSMS.ge SMS Gateway API.

Requirements

Installation

You also need a PSR-18 HTTP client. If you don't have one:

Or with Symfony:

Quick Start

Usage

Send SMS

Send Bulk SMS

Check SMS Status

Check Balance

Send OTP

Verify OTP

Note: A wrong OTP code returns verify: false without throwing an exception. Exceptions are thrown only for expired OTPs, already-used OTPs, and locked accounts.

Create Sender

Error Handling

All API errors throw specific exceptions that extend ApiException:

Rate Limit Errors

When OTP rate limits are exceeded, the exception includes retryAfter (seconds until lockout expires):

Error Code Reference

Code Exception Description
100 InvalidApiKeyException Invalid or missing API key
101 InvalidSenderException Invalid sender name
102 InsufficientBalanceException Not enough SMS balance
103 InvalidParametersException Invalid parameters or message too long
104 MessageNotFoundException Message ID not found
105 InvalidPhoneException Invalid phone number format
106 OtpFailedException Failed to generate/send OTP
107 SenderExistsException Sender name already exists
108 NotConfiguredException API token not configured for this operation
109 TooManyRequestsException Too many OTP requests (rate limited)
110 AccountLockedException Account locked (too many failed attempts)
111 OtpExpiredException OTP code expired
112 OtpAlreadyUsedException OTP code already used
113 InvalidNoSmsNumberException Invalid noSmsNumber parameter

Custom HTTP Client

The SDK auto-detects your installed PSR-18 HTTP client. To provide a custom one:

Custom Base URL

Laravel Integration

Phone Number Format

The API accepts Georgian mobile numbers in two formats:

SMS Limits

License

MIT


All versions of sms-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
php-http/discovery Version ^1.15
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 gosms-ge/sms-sdk contains the following files

Loading the files please wait ...