PHPackages                             secit-pl/signal-notifier-bundle - 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. secit-pl/signal-notifier-bundle

ActiveSymfony-bundle

secit-pl/signal-notifier-bundle
===============================

Symfony Notifier Signal support.

1.0.1(5y ago)015MITPHPPHP &gt;=7.4.0

Since Jul 14Pushed 5y agoCompare

[ Source](https://github.com/secit-pl/signal-notifier-bundle)[ Packagist](https://packagist.org/packages/secit-pl/signal-notifier-bundle)[ Docs](http://secit.pl)[ RSS](/packages/secit-pl-signal-notifier-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Symfony Signal Notifier Bundle
==============================

[](#symfony-signal-notifier-bundle)

Signal support for Symfony Notifier 5.1+.

This bundle wraps [signal-cli](https://github.com/AsamK/signal-cli) into symfony notifier transport. To make it work you need to have possibility to execute [signal-cli](https://github.com/AsamK/signal-cli) command.

Installation
------------

[](#installation)

From the command line run

```
$ composer require secit-pl/signal-notifier-bundle

```

Configuration
-------------

[](#configuration)

First of all you should have properly set up the [signal-cli](https://github.com/AsamK/signal-cli). If it's working you are ready to proceed.

#### config/packages/notifier.yaml

[](#configpackagesnotifieryaml)

```
framework:
    notifier:
        texter_transports:
            signal: '%env(SIGNAL_DSN)%' # add Signal support
        channel_policy:
            urgent: ['sms/signal'] # setup it for specified channel
            high: ['email']
            medium: ['email']
            low: ['email']
```

#### .env

[](#env)

Configure the Signal DSN using the following format:

```
SIGNAL_DSN=signal://localhost?cli=SIGNAL_CLI_PATH&user=USER_NAME
```

Remember to properly encode the phone number. The + sign should be encoded as %2b so the number +481234567890 should be written as %2b481234567890!

For example:

```
SIGNAL_DSN=signal://localhost?cli=/usr/local/Cellar/signal-cli/0.6.8/bin/signal-cli&user=%2b48123456789
```

Usage
-----

[](#usage)

You can now send the signal messages using Symfony Notifier.

If you'd like to send the message directly using Singal transport you can do it as follows:

```
