Skip to content

amirjonss/sms-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmsBundle

Installation

Install the package

composer req amirjon/sms-bunle

Add to config/bundles.php

Amir\SmsBundle\SmsBundle::class => ['all' => true],

Add next lines to your .env file

###> sms sender ###
ESKIZ_EMAIL=john.doe@mail.com
ESKIZ_PASSWORD=password_of_eskiz
ESKIZ_FROM=4546
###< sms sender ###

How to use

You need to use this service in construct method of class

Example of simple using

class MyClass {
    public function __construct(private SmsSender $sender) 
    {
        $this->sender->sendMessage('998123456789', 'Hello Mario');
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages