feat: Implement SMS sending functionality with KavehNegar and Rangineh providers
- Add SendSmsMessage class for encapsulating SMS message data. - Create KavehNegarProvider and RanginehProvider classes implementing SmsProviderInterface for sending SMS. - Implement SmsLogRepository and SmsTemplateRepository for managing SMS logs and templates. - Develop SendSmsHandler for handling SMS sending messages. - Create SmsService to manage SMS dispatching and logging. - Add UserProfileController for managing user profiles with CRUD operations. - Implement UserProfile entity and repository for user profile data management. - Update symfony.lock and bootstrap.php for project dependencies and environment setup.
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
###> symfony/framework-bundle ###
|
||||
APP_ENV=prod
|
||||
# IMPORTANT: generate a strong random secret for production:
|
||||
# php -r "echo bin2hex(random_bytes(32));"
|
||||
APP_SECRET=CHANGE_ME_STRONG_RANDOM_32_CHARS
|
||||
APP_SHARE_DIR=var/share
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
###> symfony/routing ###
|
||||
DEFAULT_URI=https://your-domain.com
|
||||
###< symfony/routing ###
|
||||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
DATABASE_URL="mysql://user:CHANGE_ME@db:3306/clinic_pro?serverVersion=8.0&charset=utf8mb4"
|
||||
###< doctrine/doctrine-bundle ###
|
||||
|
||||
###> lexik/jwt-authentication-bundle ###
|
||||
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
|
||||
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
|
||||
# Generate with: openssl rand -hex 32
|
||||
JWT_PASSPHRASE=CHANGE_ME_STRONG_PASSPHRASE
|
||||
###< lexik/jwt-authentication-bundle ###
|
||||
|
||||
###> nelmio/cors-bundle ###
|
||||
CORS_ALLOW_ORIGIN='^https://your-domain\.com$'
|
||||
###< nelmio/cors-bundle ###
|
||||
|
||||
###> symfony/messenger ###
|
||||
MESSENGER_TRANSPORT_DSN=redis://redis:6379/messages
|
||||
###< symfony/messenger ###
|
||||
|
||||
###> Redis ###
|
||||
REDIS_URL=redis://redis:6379
|
||||
###< Redis ###
|
||||
|
||||
###> Auth ###
|
||||
REFRESH_TOKEN_TTL=2592000
|
||||
OTP_TTL=1200
|
||||
###< Auth ###
|
||||
|
||||
###> SMS ###
|
||||
KAVENEGAR_API_KEY=CHANGE_ME
|
||||
KAVENEGAR_SENDER=CHANGE_ME
|
||||
RANGINEH_API_KEY=CHANGE_ME
|
||||
RANGINEH_SENDER=CHANGE_ME
|
||||
SMS_PROVIDER=kavenegar
|
||||
###< SMS ###
|
||||
|
||||
###> File Upload ###
|
||||
MAX_FILE_SIZE_BYTES=5242880
|
||||
UPLOAD_DIR=var/uploads
|
||||
###< File Upload ###
|
||||
|
||||
###> Payment ###
|
||||
ALLOWED_FRONTEND_HOSTS=your-domain.com
|
||||
APP_BASE_URL=https://your-domain.com
|
||||
MELLAT_TERMINAL_ID=CHANGE_ME
|
||||
MELLAT_USERNAME=CHANGE_ME
|
||||
MELLAT_PASSWORD=CHANGE_ME
|
||||
SEP_TERMINAL_ID=CHANGE_ME
|
||||
###< Payment ###
|
||||
Reference in New Issue
Block a user