Skip to content

Instantly share code, notes, and snippets.

@mohammad-fouladgar
Last active March 25, 2021 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohammad-fouladgar/8a968e72e502fe63df8ff3b108a67e1f to your computer and use it in GitHub Desktop.
Save mohammad-fouladgar/8a968e72e502fe63df8ff3b108a67e1f to your computer and use it in GitHub Desktop.
Implements a SMSClient
<?php
namespace App;
use Fouladgar\MobileVerification\Contracts\SMSClient;
use Fouladgar\MobileVerification\Notifications\Messages\Payload;
class SampleSMSClient implements SMSClient
{
protected $SMSService;
/**
* @param Payload $payload
*
* @return mixed
*/
public function sendMessage(Payload $payload)
{
// preparing SMSService...
return $this->SMSService
->send($payload->getTo(), $payload->getToken());
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment