lsnepomuceno/laravel-locasms

SMS integration with LocaSMS service.

Installs: 274

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lsnepomuceno/laravel-locasms

0.0.2 2021-07-12 15:04 UTC

This package is auto-updated.

Last update: 2025-10-13 00:27:52 UTC


README

Require this package in your composer.json and update composer. This will download the package and the dependencies libraries also.

composer require lsnepomuceno/laravel-locasms

Sign up before you start

Register at LocaSMS to obtain login and password.

Usage

<?php

use LSNepomuceno\LaravelLocasms\SMS;

class ExampleController() {
    public function dummyFunction(){
       $sms = new SMS('login', 'password');
       
       // IMPORTANT: 
       //    - Service is limited to 200 characters
       //    - Sending SMS works only in Brazil
       //    - The country code has been discarded
       $response = $sms->send(['+55(27)99999-8888', '2799988-7766'], 'Test message from Laravel integration!!!'));
       
       // See http client for more details: https://laravel.com/docs/8.x/http-client
       dd($respone->body());
    }
}