Download the PHP package variablesign/sms without Composer

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

Laravel SMS Sender

Latest Version on Packagist Total Downloads GitHub License

A Laravel SMS Gateway Integration package for bulk SMS providers in Ghana. Below are the gateways that are currently supported and others added in future updates.

Available features:

Supported gateways:

System Requirements

Installation

You can install the package via composer:

Configuration

Publish the sms config by running this command after installation:

Head to config/sms.php to start editing the configuration settings. Change the default gateway by setting the value to any of the gateways defined in the list of gateways. You can however ever switch between gateways in your code which will ignore the default config value.

The following shows the options for smsonlinegh gateway.

Usage

Checking SMS balance

You can check your SMS balance or credits by using any of the following.

Without facades

With helper function

Returns an integer as the response or null as the default;

Sending SMS messages

You can send SMS messages by using any of the following.

Without facades

With helper function

Returns \Illuminate\Support\Collection as the response;

Checking SMS delivery status

You can check the delivery status of submitted messages by using their message id.

Without facades

With helper function

Returns \Illuminate\Support\Collection as the response;

Sending OTP messages

You can use our otp() method to generate and quickly send one-time-pin messages.

Returns \Illuminate\Support\Collection as the response;

Without expiration time

Returns \Illuminate\Support\Collection as the response;

Or with your own custom messages. Use the :code placeholder in your messages and it will be replaced with the generated OTP. You can generate a code length between 4 to 8. The example below generates a code length of 6.

Returns \Illuminate\Support\Collection as the response;

Channel Usage

You can also send SMS messages through Laravel's notification class using php artisan make:notification command via sms or SmsChannel::class as the channel. If you want to change the sms channel name or disable it from being registered, you can do so in the config file.

Sending the notification:

Notification channel response

You can learn how to retrieve the response through the NotificationSent event from the Notification section of the Laravel docs.

Debugging

You can die dump the raw api response by adding the dd() method.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING 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 sms with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version >=6.3
illuminate/support Version >=7.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 variablesign/sms contains the following files

Loading the files please wait ....