PHP code example of lsnepomuceno / laravel-locasms

1. Go to this page and download the library: Download lsnepomuceno/laravel-locasms library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lsnepomuceno / laravel-locasms example snippets




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());
    }
}