PHP code example of asorasoft / plasgate
1. Go to this page and download the library: Download asorasoft/plasgate 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/ */
asorasoft / plasgate example snippets
php
return [
"providers" => [
Asorasoft\Plasgate\PlasgateServiceProvider::class,
]
];
bash
php artisan vendor:publish --provider="Asorasoft\Plasgate\PlasgateServiceProvider"
php
use Asorasoft\Plasgate\Plasgate;
$plasgate = new Plasgate();
$response = $plasgate->send('phone', 'your_text_message'); // GuzzleHttp Response