Download the PHP package laravel-notification-channels/sipgate without Composer

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

Laravel Notifications for sipgate

Latest Version on Packagist Build Status StyleCI Quality Score Code Coverage Total Downloads

This package makes it easy to send notifications using sipgate with Laravel 5.5+, 6.x, 7.x, 8.x, 9.x.

Contents

Installation

Install the package via composer:

Setting up the sipgate service

Extend config/services.php to read your sipgate credentials from your .env:

Add your sipgate credentials to your .env:

Web SMS Extensions / SMS ID

A Web SMS extension consists of the letter 's' followed by a number (e.g. s0). The sipgate API uses the concept of Web SMS extensions to identify devices within your account that are enabled to send SMS. In this context the term 'device' does not necessarily refer to a hardware phone but rather a virtual connection.

You can find out what your extension is as follows:

  1. Log into your sipgate account
  2. Use the sidebar to navigate to the Connections (Anschlüsse) tab
  3. Click SMS (if this option is not displayed you might need to book the Web SMS feature from the Feature Store)
  4. The URL of the page should have the form https://app.sipgate.com/{...}/connections/sms/{smsId} where {smsId} is your Web SMS extension.

Send SMS with custom sender number

By default 'sipgate' will be used as the sender. It is only possible to change the sender to a mobile phone number by verifying ownership of said number. In order to accomplish this, proceed as follows:

  1. Log into your sipgate account
  2. Use the sidebar to navigate to the Connections (Anschlüsse) tab
  3. Click SMS (if this option is not displayed you might need to book the Web SMS feature from the Feature Store)
  4. Click the gear icon on the right side of the Caller ID box and enter the desired sender number.
  5. Proceed to follow the instructions on the website to verify the number.

Usage

Create a Notification

When your credentials are configured, you can use the sipgate channel in your notifications.

Add a recipient

You can either choose to add the recipients number to the message itself:

Or add a routeNotificationForSipgate method to your notifiable class:

If you define both, the message will be send to the number you defined in the message.

Sending On-Demand Notifications

If you want to send a notification to someone who is not registered in your application, use on-demand notifications:

Available Message methods

Optional: In order to send a delayed message set the desired date and time in the future (up to one month):

Note: The sendAt method accepts a Unix timestamp.

Common Issues

SMS sent successfully but no message received

Possible reasons are:

HTTP Errors

reason errorcode
bad request (e.g. request body fields are empty or only contain spaces, timestamp is invalid etc.) 400
username and/or password are wrong 401
insufficient account balance 402
no permission to use specified SMS extension (e.g. SMS feature not booked, user password must be reset in web app) 403
internal server error or unhandled bad request (e.g. smsId not set) 500

Resources

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 MIT License (MIT). Please see License File for more information.


All versions of sipgate with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ^7.2
illuminate/notifications Version ~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0
illuminate/support Version ~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0
ext-json Version *
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 laravel-notification-channels/sipgate contains the following files

Loading the files please wait ....