codechap/sms-portal

Send SMSs via SMSportal.com

dev-master 2025-03-18 14:13 UTC

This package is auto-updated.

Last update: 2025-04-18 14:20:41 UTC


README

Qiick and dirty way to send an SMS

Installation

Install via Composer:

composer require codechap/sms-portal:"dev-master"

You might want to install the giggsey/libphonenumber-for-php package for phone number formatting and validation:

composer require giggsey/libphonenumber-for-php:"^8.13"

Usage

use Codechap\SmsPortal\Sms;

$sms = new Sms();
$sms->set('clientId', 'your_client_id');
$sms->set('clientSecret', 'your_client_secret');
$sms->send('1234567890', 'Hello, World!');