Download the PHP package thepublicgood/smsportal without Composer

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

SMSPortal client for Laravel

Tests

This library provides a complete implementation of the SMSPortal Rest API for Laravel. The library provides a generic client you can use to send SMSs and a Laravel Notifications Channel which can be used to easily send SMSs to specific entities.

Installation through Composer:

Once installed, publish the config file with:

This will place a simple smsportal.php file in your config directory. However, if you don't want to publish the provided config file, you can also alter the provided services.php config file with:

Configure your SMSPortal API ID and Secret in either the services.php or smsportal.php config file.

Basic usage

The library provides a Laravel facade to easily send arbitrary messages to one or more mobile numbers:

You can also send the same message to multiple numbers by passing in an array:

Advanced usage

If you need more control over who received what, the library has registered the SMSPortalClient interface into the Laravel container. You can create Message objects and pass them to the sendBulk method:

You can also use the send message to send a single message:

SMSPortal groups

If you've set up groups on contacts through SMSPortal, you can send a single message to the groups your choice by using the sendGroup method:

Laravel Notifications

If you want to use SMSPortal through Laravel Notifications, create a new Notification class and add smsportal to the array returned by the via method:

Then define a toSMSPortal method on the notification and return a message string:

On the notifiable class (your User class, for example) define a routeNotificationForSMSPortal method that returns the correct mobile number to send to:

Sending options

The library also provides a way to pass SMSPortal sending options. You can create a new instance of SendOptions and pass in any option you need. Pass this as the last parameter of the send, sendBulk or sendGroup methods:


All versions of smsportal with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^9.0|^10.0
guzzlehttp/guzzle Version ^7.4
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 thepublicgood/smsportal contains the following files

Loading the files please wait ....