PHP code example of dejwcake / laravel-sms
1. Go to this page and download the library: Download dejwcake/laravel-sms 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/ */
dejwcake / laravel-sms example snippets
use DejwCake\SmsClient\Facades\Sms;
$msg = [
'to' => '+44 01234 567890',
'content' => 'Just testing',
];
Sms::send($msg);
$msg = [
'to' => '+44 01234 567890',
'content' => 'Just testing',
];
$sms = app()['sms'];
$sms->send($msg);
$msg = [
'to' => '+44 01234 567890',
'content' => 'Just testing',
];
$sms = app()->make('DejwCake\SmsClient\Contracts\Client');
$sms->send($msg);
bash
$ php artisan vendor:publish
shell
docker compose run -it --rm php-qa phpstan analyse --configuration=phpstan.neon
shell
docker compose run -it --rm test composer update \
&& docker compose run -it --rm php-qa composer normalize \
&& docker compose run -it --rm php-qa phpcs --standard=.phpcs.compatibility.xml --cache=.phpcs.cache \
&& docker compose run -it --rm php-qa phpcs -s --colors --extensions=php \
&& docker compose run -it --rm php-qa phpstan analyse --configuration=phpstan.neon \
&& docker compose run -it --rm php-qa phpmd analyze \
&& docker compose run -it --rm test ./vendor/bin/phpunit