Skip to content

Intall and Use in PHP Project

Ariful Islam edited this page Mar 14, 2021 · 1 revision

For installing and using in php application this package require composer to be set up. Then the following command will install in your php application. You need to autoload the file just

composer require arif98741/xenon


use Xenon\Provider\BulkSmsBD;
use Xenon\Sender;

require 'vendor/autoload.php';

$sender = Sender::getInstance(); try { $response = $sender->selectProvider(BulkSmsBD::class) ->setConfig(['username' => '017555XYZAB', 'password' => 'XXXXX']) ->setMessage('hello') ->setMobile('017XXXXXXX') ->send(); var_dump($response); } catch (Exception $e) { var_dump($e->getMessage()); }

Clone this wiki locally