{"id":17937711,"url":"https://github.com/symfony/sweego-notifier","last_synced_at":"2026-01-25T00:07:25.280Z","repository":{"id":258292056,"uuid":"874623072","full_name":"symfony/sweego-notifier","owner":"symfony","description":"Symfony Sweego Notifier Bridge","archived":false,"fork":false,"pushed_at":"2026-01-13T21:22:28.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"8.1","last_synced_at":"2026-01-13T23:46:42.699Z","etag":null,"topics":["component","notifier","php","sms","sweego","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/notifier","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/symfony.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["fabpot","nicolas-grekas"],"custom":"https://symfony.com/sponsor","tidelift":"packagist/symfony/symfony"}},"created_at":"2024-10-18T06:59:23.000Z","updated_at":"2025-05-20T08:37:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd3ae6c0-f794-4490-bca2-ebda4d577caf","html_url":"https://github.com/symfony/sweego-notifier","commit_stats":null,"previous_names":["symfony/sweego-notifier"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/symfony/sweego-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fsweego-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fsweego-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fsweego-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fsweego-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/sweego-notifier/tar.gz/refs/heads/8.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fsweego-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","notifier","php","sms","sweego","symfony","symfony-component"],"created_at":"2024-10-28T23:06:59.390Z","updated_at":"2026-01-25T00:07:25.267Z","avatar_url":"https://github.com/symfony.png","language":"PHP","funding_links":["https://github.com/sponsors/fabpot","https://github.com/sponsors/nicolas-grekas","https://symfony.com/sponsor","https://tidelift.com/funding/github/packagist/symfony/symfony"],"categories":[],"sub_categories":[],"readme":"Sweego Notifier\n===============\n\nProvides [Sweego](https://www.sweego.io/) integration for Symfony Notifier.\n\nDSN example\n-----------\n\n```\nSWEEGO_DSN=sweego://API_KEY@default?region=REGION\u0026campaign_type=CAMPAIGN_TYPE\u0026bat=BAT\u0026campaign_id=CAMPAIGN_ID\u0026shorten_urls=SHORTEN_URLS\u0026shorten_with_protocol=SHORTEN_WITH_PROTOCOL\n```\n\nwhere:\n - `API_KEY` (required) is your Sweego API key\n - `REGION` (required) is the region of the phone number (e.g. `FR`, ISO 3166-1 alpha-2 country code)\n - `CAMPAIGN_TYPE` (required) is the type of the campaign (e.g. `transac`)\n - `BAT` (optional) is the test mode (e.g. `true`)\n - `CAMPAIGN_ID` (optional) is the campaign id (e.g. `string`)\n - `SHORTEN_URLS` (optional) is the shorten urls option (e.g. `true`)\n - `SHORTEN_WITH_PROTOCOL` (optional) is the shorten with protocol option (e.g. `true`)\n\nAdvanced Message options\n------------------------\n\n```php\nuse Symfony\\Component\\Notifier\\Message\\SmsMessage;\nuse Symfony\\Component\\Notifier\\Bridge\\Sweego\\SweegoOptions;\n\n$sms = new SmsMessage('+1411111111', 'My message');\n\n$options = (new SweegoOptions())\n    // False by default, set 'bat' to true enable test mode (no sms sent, only for testing purpose)\n    -\u003ebat(true)\n    // Optional, used for tracking / filtering purpose on our platform; identity an SMS campaign and allow to see logs / stats only for this campaign\n    -\u003ecampaignId('string')\n    // True by default, we replace all url in the SMS content by a shortened url version (reduce the characters of the sms)\n    -\u003eshortenUrls(true)\n    // True by default, add scheme to shortened url version\n    -\u003eshortenWithProtocol(true);\n\n// Add the custom options to the sms message and send the message\n$sms-\u003eoptions($options);\n\n$texter-\u003esend($sms);\n```\n\nWebhook\n-------\n\nConfigure the webhook routing:\n\n```yaml\nframework:\n    webhook:\n        routing:\n            sweego_sms:\n                service: notifier.webhook.request_parser.sweego\n                secret: '%env(SWEEGO_WEBHOOK_SECRET)%'\n```\n\nAnd a consumer:\n\n```php\n#[AsRemoteEventConsumer(name: 'sweego_sms')]\nclass SweegoSmsEventConsumer implements ConsumerInterface\n{\n    public function consume(RemoteEvent|SmsEvent $event): void\n    {\n        // your code\n    }\n}\n```\n\nSponsor\n-------\n\nHelp Symfony by [sponsoring][3] its development!\n\nResources\n---------\n\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n\n[3]: https://symfony.com/sponsor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fsweego-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fsweego-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fsweego-notifier/lists"}