Skip to content

A simple PHP package for Plasgate SMS provider

License

Notifications You must be signed in to change notification settings

HELMAB/plasgate

Repository files navigation

Plasgate SDK for Laravel

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.