Download the PHP package hachetaustralia/smsbroadcast without Composer

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

SMS Broadcast notifications channel for Laravel 8

Latest Version on Packagist Total Downloads

This package makes it easy to send SMS Broadcast SMS notifications with Laravel 8

Contents

Requirements

Installation

You can install the package via composer:

for Laravel 6 and 7, please use the 2.x version of this package. for Laravel 5.8 or lower, please use the 1.x version of this package.

Setting up your SMSBroadcast account

Add the environment variables to your config/services.php:

Add your SMS Broadcast username and password as well as the default from number/alphanumeric code to your .env:

Notice: The from can contain a maximum of 11 alphanumeric characters. You can also specify sandbox to true for testing (no post requests are made).

Setup your route on your notifiable model such as your User with the default destination for that model (single number or array of numbers).

Using a Custom Logging Channel

Debug logs will automatically use your default logging channel, however you can specify a custom logging channel by adding the following to your config/services.php file:

And the following to your .env file

Usage

Now you can use the channel in your via() method inside the notification:

Available methods

Additionally you can add or change recipients (single value or array)

In order to handle a status report you can also set a reference

Maximum message splits are supported as well to determine the maximum number of SMS message credits to use per recipient. This defaults to 1.

You can also delay message sending by a specified number of minutes

Setting a private reference will not transmit to SMS Broadcast and be available should you need it on the MessageWasSent event as a property of the SMSBroadcastMessage. This is useful if you want to set something like a foreign key that you can utilise on a listener listening to the MessageWasSent event.

If you wish to use SMS Broadcast's default two-way SMS number as the from number, simply setNoFrom() on the message instance

Available events

SMS Broadcast Notification channel comes with handy events which provides the required information about the SMS messages.

  1. Message Was Sent (NotificationChannels\SMSBroadcast\Events\MessageWasSent)

Example:

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Security

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

The NoHarm Licence. Please see License File for more information.


All versions of smsbroadcast with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/notifications Version >=8.0
illuminate/support Version >=8.0
illuminate/database Version >=8.0
illuminate/queue Version >=8.0
illuminate/events Version >=8.0
illuminate/log Version >=8.0
guzzlehttp/guzzle Version ^7.2
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 hachetaustralia/smsbroadcast contains the following files

Loading the files please wait ....