Download the PHP package sureshhemal/laravel-sms-sri-lanka without Composer

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

Laravel SMS Sri Lanka

A Laravel package for sending SMS through Sri Lankan providers with seamless Laravel notifications integration, built with SOLID principles and clean architecture.

Features

Installation

You can install the package via composer:

The package will automatically register its service provider.

Configuration

Publish the configuration file:

This will create config/sms-sri-lanka.php in your config folder.

Environment Variables

Add these to your .env file:

Important:

Architecture Overview

The package follows SOLID principles and clean architecture:

Usage

1. Setting Up Your Models

Your models that can receive SMS notifications must implement the ReceivesSmsNotifications contract:

2. Using Laravel Notifications

Using Package's SmsNotification (Quick Start)

Creating Custom SMS Notifications

For more complex scenarios, create your own notification classes:

3. Direct SMS Service Usage

Note: The to parameter accepts:

4. Error Handling

The package provides granular exception handling:

Contracts

ReceivesSmsNotifications

Models that can receive SMS notifications must implement this contract:

SendsSmsNotification

Custom notification classes should implement this contract:

SmsServiceContract

For direct SMS service usage:

Configuration

The package configuration is in config/sms-sri-lanka.php:

Adding New Providers

The package is designed to be easily extensible. To add a new provider:

  1. Create provider-specific classes implementing the contracts:

  2. Register in configuration:

  3. Update environment variables:

Supported Providers

Hutch

More Providers Coming Soon

Testing

The package includes comprehensive tests with modern PHPUnit 10+ attributes:

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-sms-sri-lanka with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/notifications Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
guzzlehttp/psr7 Version ^2.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 sureshhemal/laravel-sms-sri-lanka contains the following files

Loading the files please wait ....