innoboxrr/twilio-sdk

1.0.2 2023-08-08 16:09 UTC

This package is auto-updated.

Last update: 2024-05-08 17:48:14 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation

You can install the package via composer:

composer require innoboxrr/twilio-sdk

Usage

SMS or WhatsApp message

$sid = 'AC28xxxxxxxxxxxxxxxxxxxxxxxxxx6ff';

$token = '82694xxxxxxxxxxxxxxxxxxxxxxxxd7df5';

$nombreTienda = "Sra. Nancy Guadalupe";

$fechaVisita = '3 de junio de 2023 a las 14:00';

$urlReseña = "https://innoboxrr.com/review?code=16815159";

$from = '120xxxxxxx9';

$to = '527xxxxxxx9';

$message = <<<EOL
Su Código de confirmación es 1524568
EOL;

$res = Sms::init(['sid' => $sid, 'token' => $token])
    ->from($from)
    ->to($to)
    ->message($message)
    ->sendMessage();

$res = Whatsapp::init(['sid' => $sid, 'token' => $token])
    ->from($from)
    ->to($to)
    ->message($message)
    ->sendMessage();

dd($res);

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dev@innobox.systmes instead of using the issue tracker.

Credits

License

The The Unlicense. Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.