Download the PHP package kwtsms/laravel-kwtsms without Composer

On this page you can find all versions of the php package kwtsms/laravel-kwtsms. 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 laravel-kwtsms

kwtSMS for Laravel

Latest Version on Packagist Total Downloads PHP Version Code Style PHP

A Laravel notification channel package for the kwtSMS SMS gateway (Kuwait). Send SMS messages through kwtSMS in any Laravel 10/11/12 application.

About kwtSMS

kwtSMS is a Kuwait-based SMS gateway trusted by businesses to deliver messages across Kuwait (Zain, Ooredoo, STC, Virgin) and internationally. It offers private Sender IDs, free API testing, non-expiring credits, and competitive flat-rate pricing. Open a free account in under one minute at kwtsms.com, no paperwork or payment required.


Features

Requirements

Installation

Publish configuration and run migrations:

Optionally seed the default SMS templates (English + Arabic for all event types):

Configuration

Add your kwtSMS API credentials to .env:

Note: Use your API username and password from your kwtSMS account API settings page, not your mobile number.

Sender ID: KWT-SMS is a shared test sender only. Register a private sender ID on your kwtSMS account before going live. Transactional sender IDs bypass DND lists and are required for OTP delivery.

Quick Start

Notification Channel

Your notifiable model must implement routeNotificationForKwtSms():

Then send as normal:

Direct Send via SmsSender

Response format:

Sending for Events (Template-Based)

This looks up the active template with event_type = 'order_placed' and locale matching the user, substitutes {{customer_name}}, {{order_id}}, {{total}}, and sends.

Facade

SMS Templates

Templates are managed via the admin panel at /kwtsms/templates. Each template has:

Example template body:

Rendered with:

Default templates are seeded for: otp, password_reset, order_placed, order_confirmed, order_shipped, order_delivered, order_cancelled, order_status, cod_otp, low_balance_alert.

Admin Panel

After installation, visit /kwtsms to access the admin panel. It provides:

Tab Description
Dashboard Balance, send statistics, recent logs
Settings API credentials, test connection, low balance threshold, admin phone
Templates Create, edit, activate/deactivate SMS templates
Integrations Toggle which events trigger SMS sends
Logs View and export the full SMS send history
Admin Alerts Configure alert notifications to the admin phone
Help Quick start guide and code examples

Auth: The admin panel uses the admin_middleware setting from config/kwtsms.php. Default is ['web', 'auth'].

Artisan Commands

The sync command runs automatically every day at 03:00 (Asia/Kuwait) via the scheduler.

Phone Number Format

All phone numbers must be in international format, digits only, no prefix:

The package normalizes numbers automatically before every send. Numbers containing Arabic/Hindi digits are also converted.

Test Mode

When KWTSMS_TEST_MODE=true:

Always use test mode during development. Set KWTSMS_TEST_MODE=false only in production.

Help and Support

License

The MIT License (MIT). See LICENSE for details.


All versions of laravel-kwtsms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/notifications Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
kwtsms/kwtsms Version ^1.3
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 kwtsms/laravel-kwtsms contains the following files

Loading the files please wait ...