vemcogroup/laravel-smsapi

Laravel implementation to easy sent sms via SMSAPI
5,326 3
Install
composer require vemcogroup/laravel-smsapi
Latest Version:3.0
PHP:^8.0
License:MIT
Last Updated:Jul 26, 2022
Links: GitHub  ·  Packagist
Maintainer: vemcogroup

Laravel SmsApi

Latest Version on Packagist Total Downloads

Description

This package allows you to quickly send SMS in Laravel via the SMSAPI service.

This is first version and only support to send SMS.

Further versions will support more of SMSAPI features.

Remember to register an account at SMSAPI before using this package.

Installation

You can install the package via composer:

composer require vemcogroup/laravel-smsapi

The package will automatically register its service provider.

To publish the config file to config/translation.php run:

php artisan vendor:publish --provider="Vemcogroup\SmsApi\SmsApiServiceProvider"

This is the default contents of the configuration:

return [

    /*
        |--------------------------------------------------------------------------
        | Token
        |--------------------------------------------------------------------------
        |
        | Here you define your API TOKEN for smsapi
        |
        | More info: https://www.smsapi.com/docs/#authentication
        |
        */
    
        'token' => env('SMSAPI_TOKEN'),
];

Usage

You are now able to send sms with this code

use Vemcogroup\SmsApi\SmsApi;

SmsApi::send($to, $from, $message);

Related Packages

rinvex/laravel-authy

Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authe...

78,219 32
toplan/laravel-sms

A mobile phone number validation solution based on laravel

80,777 836
laravel-notification-channels/authy

Authy notification channel for Laravel, with the ability to send in-app, sms, an...

46,703 57
laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

9,261,461 259