Download the PHP package karlos3098/simply-connect-laravel-notifications without Composer

On this page you can find all versions of the php package karlos3098/simply-connect-laravel-notifications. 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 simply-connect-laravel-notifications

Simply Connect Laravel Notifications


A library dedicated to Laravel 10/11 introducing integration with Simply Connect for the built-in notification class in Laravel


In the words of introduction. The Simply Connect application is also my project, the aim of which is to send SMS from YOUR devices. All you need to do is create an account on the platform, find an old Android phone in the drawer, install the .apk and that's it. Detailed information can be found on the portal


Install:


Then add the API key from the simply-connect.ovh platform and the ID of the device from which messages will be sent to the .env


If you want to send an SMS message, create a new notification class in the same way as for sending emails, but additionally declare the toSimplyConnect method. it is also recommended to use the SimplyConnectNotification interface

In this way, the message will be sent to the number that should appear in the "phone_number" field in a given model.


If you need a more universal method to implement a phone number, use the HasDifferentPhoneNumberForSimplyConnect extension in your model and then add the routeNotificationForSimplyConnect method.

You can also enter the phone number directly in the notification if you need it.

If you want to add multiple phone numbers, this is also possible.

For convenience, you can also use the line() and breakLine() methods to make your SMS more readable.


The message you send will be added to the queue, but you can download its ID, based on which you will later be able to check its status.

Example application in a controller. Detailed information about what is in the message object can be found in the Simply Connect API Docs


You can use a different device id and a different API key directly in the notification. If you use a different API key, remember that if you need to retrieve message details later, you must do so with the appropriate key.


It may also happen that the telephone number, device ID or whatever you provided is incorrect and the form data will be rejected. In this case, an exception will be thrown as in the example below. $array contains a list of form errors.


All versions of simply-connect-laravel-notifications with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
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 karlos3098/simply-connect-laravel-notifications contains the following files

Loading the files please wait ....