Configuration
Barta’s configuration file (config/barta.php) contains settings for all SMS gateways. You can also configure Barta using environment variables. The environment variables will override the configuration file settings.
Default Driver
Section titled “Default Driver”BARTA_DRIVER=logGateway Configurations
Section titled “Gateway Configurations”SSL Wireless
Section titled “SSL Wireless”BARTA_SSL_TOKEN=your-api-tokenBARTA_SSL_SENDER_ID=your-sender-idBARTA_SSL_CSMS_ID=optional-csms-idBARTA_ESMS_TOKEN=your-api-tokenBARTA_ESMS_SENDER_ID=your-sender-idMimSMS
Section titled “MimSMS”BARTA_MIMSMS_USERNAME=your-usernameBARTA_MIMSMS_API_KEY=your-api-keyBARTA_MIMSMS_SENDER_ID=your-sender-idInfobip
Section titled “Infobip”BARTA_INFOBIP_BASE_URL=https://api.infobip.comBARTA_INFOBIP_USERNAME=your-usernameBARTA_INFOBIP_PASSWORD=your-passwordBARTA_INFOBIP_SENDER_ID=your-sender-idGrameenphone
Section titled “Grameenphone”BARTA_GP_USERNAME=your-usernameBARTA_GP_PASSWORD=your-passwordBARTA_GP_CLI=2222BARTA_GP_MESSAGE_TYPE=1Banglalink
Section titled “Banglalink”BARTA_BL_USER_ID=your-user-idBARTA_BL_PASSWORD=your-passwordBARTA_BL_SENDER_ID=your-sender-idBARTA_ROBI_USERNAME=your-usernameBARTA_ROBI_PASSWORD=your-passwordADN SMS
Section titled “ADN SMS”BARTA_ADNSMS_API_KEY=your-api-keyBARTA_ADNSMS_API_SECRET=your-api-secretBARTA_ADNSMS_SENDER_ID=your-sender-idOther Gateways
Section titled “Other Gateways”See the Gateways section for Alpha SMS, GreenWeb, BulkSMS BD, ElitBuzz, and SMS NOC configuration.
HTTP Settings
Section titled “HTTP Settings”Barta uses HTTP requests to communicate with SMS gateways. You can configure the HTTP settings in the configuration file or using environment variables.
BARTA_REQUEST_TIMEOUT=10BARTA_REQUEST_RETRY=3BARTA_REQUEST_RETRY_DELAY=300| Setting | Default | Description |
|---|---|---|
timeout | 10 | Request timeout (seconds) |
retry | 3 | Retry attempts |
retry_delay | 300 | Retry delay (ms) |