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.1.0(1mo ago)52.2k↓62.6%MITPHPPHP &gt;=8.4.1

Since Oct 17Pushed 1w 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.2 Synced yesterday

READMEChangelog (10)Dependencies (12)Versions (28)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)

This package is looking for a [backer](https://symfony.com/backers).

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

53

—

FairBetter than 96% of packages

Maintenance96

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% of commits — single point of failure

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

Recently: every ~7 days

Total

28

Last Release

35d ago

Major Versions

v7.4.0 → v8.0.02025-11-27

v7.4.4 → v8.0.42026-01-08

v7.4.7 → v8.0.72026-03-03

v7.4.9 → v8.0.92026-04-30

7.4.x-dev → v8.1.02026-05-29

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

v8.0.0-BETA1PHP &gt;=8.4

v8.1.0-BETA1PHP &gt;=8.4.1

### 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 (14 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (5 commits)")[![qdequippe](https://avatars.githubusercontent.com/u/3193300?v=4)](https://github.com/qdequippe "qdequippe (3 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)")

---

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/twilio-notifier

Symfony Twilio Notifier Bridge

131.3M2](/packages/symfony-twilio-notifier)[symfony/fake-sms-notifier

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

27863.3k1](/packages/symfony-fake-sms-notifier)[symfony/microsoft-teams-notifier

Symfony Microsoft Teams Notifier Bridge

12987.2k](/packages/symfony-microsoft-teams-notifier)[symfony/free-mobile-notifier

Symfony Free Mobile Notifier Bridge

2078.6k](/packages/symfony-free-mobile-notifier)[symfony/sinch-notifier

Symfony Sinch Notifier Bridge

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

Symfony Mailjet Notifier Bridge

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

PHPackages © 2026

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