PHPackages                             symfony/sweego-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/sweego-notifier

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

symfony/sweego-notifier
=======================

Symfony Sweego Notifier Bridge

v8.0.7(2mo ago)51.9k↓33.3%MITPHPPHP &gt;=8.4

Since Oct 17Pushed 2mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (23)Used By (0)

Sweego Notifier
===============

[](#sweego-notifier)

Provides [Sweego](https://www.sweego.io/) integration for Symfony Notifier.

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

[](#dsn-example)

```
SWEEGO_DSN=sweego://API_KEY@default?region=REGION&campaign_type=CAMPAIGN_TYPE&bat=BAT&campaign_id=CAMPAIGN_ID&shorten_urls=SHORTEN_URLS&shorten_with_protocol=SHORTEN_WITH_PROTOCOL

```

where:

- `API_KEY` (required) is your Sweego API key
- `REGION` (required) is the region of the phone number (e.g. `FR`, ISO 3166-1 alpha-2 country code)
- `CAMPAIGN_TYPE` (required) is the type of the campaign (e.g. `transac`)
- `BAT` (optional) is the test mode (e.g. `true`)
- `CAMPAIGN_ID` (optional) is the campaign id (e.g. `string`)
- `SHORTEN_URLS` (optional) is the shorten urls option (e.g. `true`)
- `SHORTEN_WITH_PROTOCOL` (optional) is the shorten with protocol option (e.g. `true`)

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

[](#advanced-message-options)

```
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\Sweego\SweegoOptions;

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

$options = (new SweegoOptions())
    // False by default, set 'bat' to true enable test mode (no sms sent, only for testing purpose)
    ->bat(true)
    // Optional, used for tracking / filtering purpose on our platform; identity an SMS campaign and allow to see logs / stats only for this campaign
    ->campaignId('string')
    // True by default, we replace all url in the SMS content by a shortened url version (reduce the characters of the sms)
    ->shortenUrls(true)
    // True by default, add scheme to shortened url version
    ->shortenWithProtocol(true);

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

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

Webhook
-------

[](#webhook)

Configure the webhook routing:

```
framework:
    webhook:
        routing:
            sweego_sms:
                service: notifier.webhook.request_parser.sweego
                secret: '%env(SWEEGO_WEBHOOK_SECRET)%'
```

And a consumer:

```
#[AsRemoteEventConsumer(name: 'sweego_sms')]
class SweegoSmsEventConsumer implements ConsumerInterface
{
    public function consume(RemoteEvent|SmsEvent $event): void
    {
        // your code
    }
}
```

Sponsor
-------

[](#sponsor)

Help Symfony by [sponsoring](https://symfony.com/sponsor) its development!

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

51

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

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 ~23 days

Recently: every ~0 days

Total

23

Last Release

76d ago

Major Versions

v7.4.0-BETA1 → v8.0.0-BETA12025-08-01

v7.4.0 → v8.0.02025-11-27

v7.4.4 → v8.0.42026-01-08

v7.4.7 → v8.0.72026-03-03

PHP version history (2 changes)v7.2.0-RC1PHP &gt;=8.2

v8.0.0-BETA1PHP &gt;=8.4

### Community

Maintainers

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

---

Top Contributors

[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (6 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (5 commits)")[![welcoMattic](https://avatars.githubusercontent.com/u/773875?v=4)](https://github.com/welcoMattic "welcoMattic (3 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")[![qdequippe](https://avatars.githubusercontent.com/u/3193300?v=4)](https://github.com/qdequippe "qdequippe (1 commits)")

---

Tags

componentnotifierphpsmssweegosymfonysymfony-componentnotifiersmssweego

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/symfony-sweego-notifier/health.svg)](https://phpackages.com/packages/symfony-sweego-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)
