Download the PHP package sashalenz/turbosms-notification-channel without Composer

On this page you can find all versions of the php package sashalenz/turbosms-notification-channel. 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 turbosms-notification-channel

TurboSMS notification channel for Laravel

Latest Version on Packagist Total Downloads

A Laravel notification channel for the TurboSMS REST API.

This is a drop-in replacement for the abandoned laravel-notification-channels/turbosms package, which still talks to the long-deprecated SOAP endpoint and fails on modern PHP with SoapClient::__construct(): 'location' and 'uri' options are required in nonWSDL mode.

Why this package

Installation

The service provider is registered automatically via package discovery.

Publish the config (optional — env-driven defaults work out of the box):

Configuration

Set the following keys in your .env:

The Bearer token is issued in the TurboSMS dashboard.

Usage

1. Notification

Add the channel to your notification's via() and implement toTurboSms:

Method names in PHP are case-insensitive, so legacy notifications declaring toTurboSMS will keep working without modification.

2. Notifiable

Provide the recipient phone via routeNotificationForTurbosms (or the case-insensitive equivalent routeNotificationForTurboSMS). Any common format works — the channel strips non-digit characters before sending:

3. Send

Sandbox mode

Set TURBOSMS_SANDBOX_MODE=true to short-circuit every send. No HTTP request is made; if TURBOSMS_DEBUG=true the would-be payload is logged at info level. Useful in local/staging environments.

Failure semantics

The channel is intentionally non-throwing — every failure path logs a warning and returns:

Scenario Result Log level
sandbox_mode = true no-op info (only if debug = true)
Empty api_key or sender no-op warning
Empty recipient phone or message body no-op none
Transport error (timeout, DNS, refused) no-op warning
HTTP 401 / 403 no-op warning
Other non-2xx no-op warning
Envelope response_code != 0 (e.g. insufficient funds) no-op warning
Per-recipient response_code != 0 (e.g. invalid phone) no-op warning
Successful send sent info (only if debug = true)

This matches the design constraint that a misconfigured SMS provider should not block delivery, fiscalisation, or any other queued workflow that happens to dispatch an SMS as a side-effect.

Testing

Tests use Http::fake() and Orchestra Testbench — no real HTTP calls are made.

License

MIT — see LICENSE.


All versions of turbosms-notification-channel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/notifications Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
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 sashalenz/turbosms-notification-channel contains the following files

Loading the files please wait ...