for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MeysamZnd\HostiranSmsProvider;
use MeysamZnd\HostiranSmsProvider\Interfaces\Sms;
use SoapClient;
class ToMany implements Sms
{
public function __construct()
}
/**
* @param string $url
* @param array $data
* @return array
*/
public function send(string $url, array $data): array
ini_set('soap.wsdl_cache_enabled', '0');
try {
$client = new SoapClient($url, ['encoding' => 'UTF-8']);
$response = [
'status' => true,
'providerResult' => $client->AddSchedule($data),
];
} catch (\SoapFault $sf) {
'status' => false,
'providerResult' => $sf->getMessage(),
return $response;