{"id":1672,"date":"2024-06-18T15:01:59","date_gmt":"2024-06-18T13:01:59","guid":{"rendered":"https:\/\/dev.buddydevs.com\/miguel\/wie-sie-symfony-sms-voice-notifications-verwenden-2\/"},"modified":"2026-09-12T11:57:16","modified_gmt":"2026-09-12T11:57:16","slug":"how-to-use-symfony-sms-voice-notifications-2","status":"publish","type":"post","link":"https:\/\/dev.buddydevs.com\/miguel\/en\/wie-sie-symfony-sms-voice-notifications-verwenden-2\/","title":{"rendered":"How to Use Symfony SMS & Voice Notifications"},"content":{"rendered":"

If you have a Symfony application, our SMS gateway can automatically send SMS messages and even phone calls. And all this without much programming. The fastest and cheapest way to integrate Symfony SMS and voice notifications into your Symfony system.<\/p>\n

How to upgrade your Symfony application with SMS notifications<\/h2>\n
\n

In the digital age, it is crucial that you stay in touch with your users, and what could be a better way to do this than an immediate SMS notification? Symfony, a robust PHP framework, offers seamless integration with SMS services, allowing you to send timely updates directly to your users\u2019 phones. Here\u2019s how to use the SMS Notifier component from Symfony to set up an SMS and voice channel for your application.<\/p>\n

Do you understand the functionality of voice and SMS notifications:<\/strong> <\/h3>\n

Before we dive into the technical details, let\u2019s take a closer look at the types of notifications you can send and the benefits they bring:<\/p>\n

Transaction messages:<\/h5>\n

These are important to inform users about their account activities, such as resetting passwords, order confirmations, and shipping updates. They strengthen user trust and engagement.<\/p>\n

Promotional messages:<\/h5>\n

Use SMS to boost your marketing efforts by sending notifications about sales, special events, or exclusive offers. You can significantly increase conversion rates.<\/p>\n

Informative news:<\/h5>\n

Keep your audience informed with regular news, tips, or reminders. This constant engagement creates a loyal user base.<\/p>\n

The benefits of integrating Voice & SMS with Symfony:<\/h3>\n

Integrating SMS notifications into your Symfony application has several advantages:<\/p>\n

High engagement: SMS messages have an open rate of 98% and ensure that your communication is noticed.<\/h5>\n
Speed and convenience: Send messages instantly and allow your users to receive updates anytime, anywhere.<\/h5>\n
Reliability: SMS are not dependent on an internet connection, making them a reliable channel for urgent notifications.<\/h5>\n
Language: Instead of a text message, you can also directly send a voice call.<\/h5>\n
Price: SMS are significantly cheaper than Whatsapp or RCS.<\/h5>\n
Data security: You can automatically delete the content of your SMS immediately after it is sent<\/h5>\n
\"Symfony\"<\/figure>\n

Implementing voice and SMS notifications in Symfony<\/h2>\n
\n

Now let\u2019s get to the exciting part \u2013 the implementation. Follow these steps to set up your application so that it can send Symfony SMS notifications using the
\n LOX24 notifier<\/span>
\n<\/a>:<\/p>\n

    \n
  1. Install the detector component<\/strong>Start the installation
    \n
    Notifier component from Symfony<\/a>
    \n<\/strong> together with a bridge for
    LOX24<\/a>.<\/p>\n
      \n
    1. Install<\/strong>: composer requires symfony\/lox24-notifier<\/code><\/li>\n
    2. DSN correction:<\/strong> Open the .env file and correct the parameter LOX24_DSN: LOX24_DSN=lox24:\/\/USER:TOKEN@default?from=FROM&type=TYPE&voice_lang=VOICE_LANGUAGE&delete_text=DELETE_TEXT&callback_data=CALLBACK_DATA<\/code>\n