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.
Informations about the package sms-sdk
GoSMS.ge PHP SDK
Official PHP SDK for the GoSMS.ge SMS Gateway API.
Requirements
- PHP 7.4 or higher
- A PSR-18 HTTP client (e.g., Guzzle, Symfony HttpClient)
- A PSR-17 HTTP factory (e.g., nyholm/psr7, guzzlehttp/psr7)
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: falsewithout 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:
- 9 digits starting with 5:
555123456 - 12 digits with country code:
995555123456
SMS Limits
- GSM-7 (default): 160 chars per segment, max 918 chars (6 segments)
- Unicode: 70 chars per segment, max 402 chars (6 segments)
- Encoding is detected automatically by the API
License
MIT
All versions of sms-sdk with dependencies
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
php-http/discovery Version ^1.15