tkg-app / eskiz-one-bundle
Package info
github.com/amirjonss/sms-test-2
Type:symfony-bundle
pkg:composer/tkg-app/eskiz-one-bundle
v1.0.0
2023-07-18 11:09 UTC
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
This package is auto-updated.
Last update: 2026-02-18 17:14:02 UTC
README
Installation
Install the package
composer req tkg-apps/eskiz-sms-bundle
Add to config/bundles.php
TkgApps\EskizSmsSender\EskizSmsBundle::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 ESKIZ_SMS_SEND_LINK=https://notify.eskiz.uz/api/message/sms/send ESKIZ_GET_TOKEN_LINK=https://notify.eskiz.uz/api/auth/login ###< 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'); } }