Skip to content

DLT Tag #11

Feb 12, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,
it seems like you need to add two tags for messages (depended on your SMS gateway provider)

something like this:

<?php

declare(strict_types=1);

namespace app\components\Sms;

use Exception;
use smpp\{Address, Client as SmppClient, Smpp, Tag, transport\Socket};

class SmsBuilder
{
    /** @var string 11 chars limit */
    public const DEFAULT_SENDER = 'example';

    protected Socket $transport;

    protected SmppClient $smppClient;

    protected bool $debug = false;

    protected Address $from;

    protected Address $to;

    protected string $login;

    protected string $password;

    protected ?array $tags = null;

    /**
     * SmsBuilder constructor.
     *
     * @par…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@meetshamee
Comment options

Answer selected by alexandr-mironov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10 on February 17, 2023 12:11.