amirjonss / one-bundle
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-ctype: *
- ext-iconv: *
- symfony/console: 6.2.*
- symfony/dotenv: 6.2.*
- symfony/flex: 2.2.*
- symfony/framework-bundle: 6.2.*
- symfony/http-client: 6.2.*
- symfony/runtime: 6.2.*
- symfony/yaml: 6.2.*
Conflicts
README
Installation
Install the package
composer req amirjon/sms-bunle
Add to config/bundles.php
Amir\OneBundle\OneBundle::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'); } }