Download the PHP package sarkhanrasimoghlu/lsim without Composer
On this page you can find all versions of the php package sarkhanrasimoghlu/lsim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sarkhanrasimoghlu/lsim
More information about sarkhanrasimoghlu/lsim
Files in sarkhanrasimoghlu/lsim
Download sarkhanrasimoghlu/lsim
More information about sarkhanrasimoghlu/lsim
Files in sarkhanrasimoghlu/lsim
Vendor sarkhanrasimoghlu
Package lsim
Short Description Laravel package for LSIM SMS gateway integration (send SMS, check balance, delivery reports)
License MIT
Homepage https://github.com/Rasimoghlu/laravel-lsim-single-sms-package
Package lsim
Short Description Laravel package for LSIM SMS gateway integration (send SMS, check balance, delivery reports)
License MIT
Homepage https://github.com/Rasimoghlu/laravel-lsim-single-sms-package
Please rate this library. Is it a good library?
Informations about the package lsim
LSIM SMS Package for Laravel
Laravel package for LSIM SMS gateway integration. Send SMS, check balance, and track delivery reports.
Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.3 |
| Laravel | ^12.0 || ^13.0 |
| GuzzleHttp | ^7.8 || ^8.0 |
Installation
The service provider and SMS facade are registered automatically via package auto-discovery.
Configuration
Publish the config file:
Add the following to your .env file:
All Configuration Options
| Key | Env Variable | Default | Description |
|---|---|---|---|
login |
LSIM_LOGIN |
- | API login (required) |
password |
LSIM_PASSWORD |
- | API password (required) |
sender |
LSIM_SENDER |
- | Sender name (required) |
base_url |
LSIM_BASE_URL |
https://apps.lsim.az/quicksms |
API base URL |
timeout |
LSIM_TIMEOUT |
30 |
HTTP timeout in seconds |
verify_ssl |
LSIM_VERIFY_SSL |
true |
Verify SSL certificates |
logging.channel |
LSIM_LOG_CHANNEL |
stack |
Log channel |
logging.level |
LSIM_LOG_LEVEL |
info |
Log level |
Usage
Send SMS
Send Unicode SMS
Check Balance
Get Delivery Report
Using Dependency Injection
Error Handling
Error Codes
| Code | Enum Case | Description |
|---|---|---|
| -100 | InvalidKey |
Invalid API key |
| -101 | TextTooLong |
Message text is too long |
| -102 | WrongNumberFormat |
Wrong phone number format |
| -103 | InvalidSenderName |
Invalid sender name |
| -104 | InsufficientBalance |
Insufficient account balance |
| -105 | NumberInBlackList |
Phone number is in the blacklist |
| -106 | InvalidTransactionId |
Invalid transaction ID |
| -107 | IpNotAllowed |
IP address is not allowed |
| -108 | InvalidHash |
Invalid hash signature |
| -109 | NoHost |
No host available |
| -110 | ReportingLimitExceeded |
Reporting limit exceeded |
| -500 | InternalError |
Internal server error |
Delivery Statuses
| Code | Enum Case | Description |
|---|---|---|
| 100 | InQueue |
Message is in queue |
| 101 | Delivered |
Message delivered successfully |
| 102 | Undelivered |
Message could not be delivered |
| 103 | Expired |
Message expired |
| 104 | Rejected |
Message rejected |
| 105 | Cancelled |
Message cancelled |
| 106 | Error |
Delivery error |
| 107 | Unknown |
Unknown delivery status |
| 108 | Sent |
Message sent to operator |
| 109 | BlackList |
Number is in blacklist |
API Endpoints
All endpoints use GET requests. The package appends these paths to the base_url:
| Endpoint | Path | Description |
|---|---|---|
| Send SMS | /v1/send |
Send a single SMS |
| Balance | /v1/balance |
Check account balance |
| Report | /v1/report |
Get delivery report by transaction ID |
Testing
Run with coverage:
Exception Hierarchy
License
MIT. See LICENSE.md for details.
All versions of lsim with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
laravel/framework Version ^12.0 || ^13.0
guzzlehttp/guzzle Version ^7.8 || ^8.0
laravel/framework Version ^12.0 || ^13.0
guzzlehttp/guzzle Version ^7.8 || ^8.0
The package sarkhanrasimoghlu/lsim contains the following files
Loading the files please wait ...