asorasoft/plasgate

A simple PHP package for Plasgate SMS provider

v1.0.4 2021-11-21 03:57 UTC

This package is auto-updated.

Last update: 2024-04-21 09:16:55 UTC


README

A simple PHP package for Plasgate SMS provider.

Installation

You can install the package via composer:

composer require asorasoft/plasgate

Then add PlasgateServiceProvider class into config/app.php

return [
    "providers" => [
        Asorasoft\Plasgate\PlasgateServiceProvider::class,
    ]
];

Usage

You need to publish the configuration files via command

php artisan vendor:publish --provider="Asorasoft\Plasgate\PlasgateServiceProvider"

Need to change plasgate.php configuration such as token, sender_Id and base_url

use Asorasoft\Plasgate\Plasgate;

$plasgate = new Plasgate();
$response = $plasgate->send('phone', 'your_text_message'); // GuzzleHttp Response

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 mabhelitc@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.