PHPackages                             symfony/lox24-notifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. symfony/lox24-notifier

ActiveSymfony-notifier-bridge[Mail &amp; Notifications](/categories/mail)

symfony/lox24-notifier
======================

Symfony LOX24 Notifier Bridge

v8.0.4(4mo ago)4140MITPHPPHP &gt;=8.4

Since Apr 18Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/symfony/lox24-notifier)[ Packagist](https://packagist.org/packages/symfony/lox24-notifier)[ Docs](https://symfony.com)[ Fund](https://symfony.com/sponsor)[ GitHub Sponsors](https://github.com/fabpot)[ RSS](/packages/symfony-lox24-notifier/feed)WikiDiscussions 8.1 Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (31)Used By (0)

LOX24 SMS Notifier
==================

[](#lox24-sms-notifier)

Provides [LOX24 SMS Gateway](https://doc.lox24.eu/#tag/sms/operation/api_sms_post_collection) integration for Symfony Notifier.

DSN example
-----------

[](#dsn-example)

```
LOX24_DSN=lox24://USER:TOKEN@default?from=FROM&type=TYPE&voice_lang=VOICE_LANGUAGE&delete_text=DELETE_TEXT&callback_data=CALLBACK_DATA

```

where:

- `USER` (required) is LOX24 user ID.
- `TOKEN` (required) is LOX24 API v2 token.
- `FROM` (required) is the sender of the message.
- `TYPE` (optional) type of message: `sms` (by default) or `voice` (voice call).
- `VOICE_LANGUAGE` (optional) if `type` is `voice`, then you can set the language of the voice message. Possible values: `de`, `en`, `es`, `fr`, `it` or `auto` (by default) per auto-detection.
- `DELETE_TEXT` (optional) delete SMS text from LOX24 database after sending SMS. Allowed values: `1` (true) or `0` ( false). Default value: `0`.
- `CALLBACK_DATA` (optional) additional data for the callback payload.

See your account info at

Send a Message
--------------

[](#send-a-message)

```
use Symfony\Component\Notifier\Message\SmsMessage;

$sms = new SmsMessage('+1411111111', 'My message');

$texter->send($sms);
```

Advanced Message options
------------------------

[](#advanced-message-options)

```
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\Lox24\Lox24Options;

$sms = new SmsMessage('+1411111111', 'My message');

$options = (new Lox24Options())
    // set 'voice' per voice call (text-to-speech)
    ->type('voice')
    // set the language of the voice message.
    // If not set or set 'auto', the automatic language detection by message text will be used
    ->voiceLanguage('en')
    // Date of the SMS delivery. If null or not set, the message will be sent immediately
    ->deliveryAt(new DateTime('2024-03-21 12:17:00'))
    // set True to delete the message from the LOX24 database after delivery
    ->deleteTextAfterSending(true)
    // pass any string to the callback object
    ->callbackData('some_data_per_callback');

// Add the custom options to the sms message and send the message
$sms->options($options);

$texter->send($sms);
```

Usage in Combination with the Notifier Component
------------------------------------------------

[](#usage-in-combination-with-the-notifier-component)

The usage of the Webhook component when using a third-party transport in the Notifier is very similar to the usage with the Mailer.

Currently, the LOX24 SMS transport supports webhooks. Parser service name `notifier.webhook.request_parser.lox24`.

For SMS webhooks, react to the class:`Symfony\\Component\\RemoteEvent\\Event\\Sms\\SmsEvent` event.

Other LOX24 webhooks are also possible to handle as class:`Symfony\\Component\\RemoteEvent\\RemoteEvent` instances:

```
    use Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer;
    use Symfony\Component\RemoteEvent\Consumer\ConsumerInterface;
    use Symfony\Component\RemoteEvent\Event\Sms\SmsEvent;
    use Symfony\Component\RemoteEvent\RemoteEvent;

    #[AsRemoteEventConsumer('notifier_lox24')]
    class WebhookListener implements ConsumerInterface
    {
        public function consume(RemoteEvent $event): void
        {
            if ($event instanceof SmsEvent) {
                $this->handleSmsEvent($event);
            } else {
                // Handle other LOX24 webhook events
                $this->handleRemoteEvent($event);
            }
        }

        private function handleSmsEvent(SmsEvent $event): void
        {
            // Handle the SMS event
        }

        private function handleRemoteEvent(RemoteEvent $event): void
        {
            // Handle other LOX24 webhook events
        }
    }

```

Resources
---------

[](#resources)

- [Contributing](https://symfony.com/doc/current/contributing/index.html)
- [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls)in the [main Symfony repository](https://github.com/symfony/symfony)

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance84

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~0 days

Total

31

Last Release

121d ago

Major Versions

v7.4.0-BETA1 → v8.0.0-RC12025-09-26

v7.4.4 → v8.0.42026-01-08

PHP version history (3 changes)v7.1.0-RC1PHP &gt;=8.1

v7.4.0-RC1PHP &gt;=8.2

v8.0.0-RC1PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (10 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (8 commits)")[![alebedev80](https://avatars.githubusercontent.com/u/777096?v=4)](https://github.com/alebedev80 "alebedev80 (4 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (2 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (2 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (1 commits)")

---

Tags

componentlox24notifierphpsmssymfonysymfony-componentnotifiersmslox24

### Embed Badge

![Health badge](/badges/symfony-lox24-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/symfony-lox24-notifier/health.svg)](https://phpackages.com/packages/symfony-lox24-notifier)
```

###  Alternatives

[symfony/fake-sms-notifier

Fake SMS (as email or log during development) Notifier Bridge.

27754.2k1](/packages/symfony-fake-sms-notifier)[symfony/twilio-notifier

Symfony Twilio Notifier Bridge

131.2M2](/packages/symfony-twilio-notifier)[symfony/free-mobile-notifier

Symfony Free Mobile Notifier Bridge

2061.6k](/packages/symfony-free-mobile-notifier)[symfony/sendinblue-notifier

Symfony Sendinblue Notifier Bridge

12106.1k](/packages/symfony-sendinblue-notifier)[symfony/sinch-notifier

Symfony Sinch Notifier Bridge

10146.7k](/packages/symfony-sinch-notifier)[symfony/mailjet-notifier

Symfony Mailjet Notifier Bridge

1362.5k](/packages/symfony-mailjet-notifier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
