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.

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 lsim

LSIM SMS Package for Laravel

Latest Version Total Downloads

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
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 sarkhanrasimoghlu/lsim contains the following files

Loading the files please wait ...