Download the PHP package prgayman/laravel-sms without Composer

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

Laravel SMS

Laravel SMS allows you to send SMS from your Laravel application using multiple sms providers, allow to add custom sms provider

Requirements

Installation

To get the latest version of laravel-sms on your project, require it from "composer":

$ composer require prgayman/laravel-sms

Or you can add it directly in your composer.json file:

Laravel

Register the provider directly in your app configuration file config/app.php config/app.php:

Laravel >= 5.5 provides package auto-discovery, thanks to rasmuscnielsen and luiztessadri who help to implement this feature in Zatca, the registration of the provider and the facades should not be necessary anymore.

Add the facade aliases in the same file:

Lumen

Register the provider in your bootstrap app file boostrap/app.php

Add the following line in the "Register Service Providers" section at the bottom of the file.

For facades, add the following lines in the section "Create The Application" .

Run Migrations

Publish the migrations with this artisan command:

$ php artisan vendor:publish --tag=laravel-sms-migrations

Configuration

You can publish the config file with this artisan command:

$ php artisan vendor:publish --tag=laravel-sms-config

Available SMS Providers

Provider URL Tested Multiple contacts Config
JawalSms https://www.jawalsms.net/ Yes Yes Click
Taqnyat https://www.taqnyat.sa/ Yes Yes Click
Nexmo https://www.nexmo.com/ Yes No Click
Twilio https://www.twilio.com/ Yes No Click
MoraSa https://www.mora-sa.com/ Yes Yes Click
Msegat https://www.msegat.com/ Yes Yes Click
Kobikom https://kobikom.com.tr/ Yes Yes Click
Unifonic https://unifonic.com/ No Yes Click
Jor Mall https://www.josmsservice.com Yes No Click

Available SMS Drivers local development

Provider Multiple contacts Config
array Yes -
log Yes Click

Events

Types

Usage

Set default driver

Using .env

Using facades

Enable sms history using database (send multiple contacts is not support store history)

Send Message

You can simply send a message like this:

Send using select driver sms

Send multiple contacts

Send using custom type

Send multiple messages (run events and store history per message)

Send using helper function with default driver

Send using helper function and select driver

Send using helper function and custom type

Create custom driver

Channel Usage

First you have to create your notification using php artisan make:notification command. then Prgayman\Sms\Channels\SmsChannel::class can be used as channel like the below:

SMS History

Testing

Licence

This library is open-sourced software licensed under the MIT license.


All versions of laravel-sms with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
guzzlehttp/guzzle Version ^7.0.1
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 prgayman/laravel-sms contains the following files

Loading the files please wait ....