PHPackages                             bulkgate/php-sdk - 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. bulkgate/php-sdk

ActiveLibrary

bulkgate/php-sdk
================

Simple PHP SDK for sending SMS/Viber via BulkGate portal.

1.0.2(1y ago)5125.3k—7.4%1BSD-3-ClausePHPPHP &gt;=7.4CI passing

Since Dec 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/BulkGate/php-sdk)[ Packagist](https://packagist.org/packages/bulkgate/php-sdk)[ Docs](https://www.bulkgate.com)[ RSS](/packages/bulkgate-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

BulkGate SMS/Viber - PHP SDK
============================

[](#bulkgate-smsviber---php-sdk)

[![PHP](https://camo.githubusercontent.com/84de1efd0512af08e9aec9e031448c72e8edd4978897ae32f47a41e24253b053/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62756c6b676174652f7068702d73646b3f6c6f676f3d70687026636f6c6f723d383839324246)](https://www.php.net/supported-versions.php)[![Downloads](https://camo.githubusercontent.com/fd1b7722f2cfb42f865ffca2c1b938daf72921ab5584eb3b32e9507a095d26ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62756c6b676174652f7068702d73646b2e737667)](https://packagist.org/packages/bulkgate/php-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/36308ff0844e355accbc308db19d906e327366d95c1f6ee57b53b3514868c0fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62756c6b676174652f7068702d73646b2e737667)](https://github.com/bulkgate/php-sdk/releases)[![License](https://camo.githubusercontent.com/473cef544376fc8b17289ff57aabcb009eee5020d00d47f7b44fe5dc8b970e66/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62756c6b676174652f7068702d73646b2e737667)](https://github.com/BulkGate/php-sdk/blob/master/LICENSE)[![Tests](https://github.com/BulkGate/php-sdk/workflows/Run%20tests/badge.svg)](https://github.com/BulkGate/php-sdk/actions/workflows/php.yml)

- [BulkGate](https://www.bulkgate.com/)
- [Helpdesk](https://help.bulkgate.com/)
- [Portal](https://portal.bulkgate.com/)

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

[](#installation)

The easiest way to install [bulkgate/php-sdk](https://packagist.org/packages/bulkgate/php-sdk) into a project is by using [Composer](https://getcomposer.org/) via the command line.

```
composer require bulkgate/php-sdk

```

Quick start
-----------

[](#quick-start)

### Nette DI Extension

[](#nette-di-extension)

```
extensions:
	sdk: BulkGate\Sdk\DI\Extension

sdk:
	application_id: 0000
	application_token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	sender:
		tag: 'sdk' # Optional
		default_country: cz # Optional
	configurator:
		sms: # Optional
			sender_id: gText
			sender_id_value: 'Example'
			unicode: true
		viber: # Optional
			sender: Sender
			button:
				caption: 'Button Caption'
				url: 'https://www.bulkgate.com/'
			image:
				url: 'https://www.example.com/example.png'
				zoom: true
			expiration: 3600 # seconds
```

```
use BulkGate\Sdk\Sender;
use BulkGate\Sdk\Message\Sms;

class Sdk
{
    private Sender $sender;

    public funnction __construct(Sender $sender)
    {
        $this->sender = $sender;
    }

    public function sendMessage(string $phone_number, string $text): void
    {
        $this->sender->send(new Sms($phone_number, $text));
    }
}
```

### Manual creation

[](#manual-creation)

```
use BulkGate\Sdk\Connection\ConnectionStream;
use BulkGate\Sdk\MessageSender;
use BulkGate\Sdk\Message\Sms;

$connection = new ConnectionStream(
    /*application_id: */ 0000,
    /*application_token:*/ 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
);

$sender = new MessageSender($connection);

$sender->send(new Sms($phone_number, $text));

/* Optional */

$sender->setTag('sdk');

$sender->setDefaultCountry('cz');

$viber_configurator = new ViberConfigurator('Sender');
$viber_configurator->button('Button Caption', 'https://www.bulkgate.com/');
$viber_configurator->image('https://www.example.com/example.png', true);
$viber_configurator->expiration(3_600);

$sender->addSenderConfigurator($viber_configurator);

$sms_configurator = new SmsConfigurator('gText', 'Example', true);

$sender->addSenderConfigurator($sms_configurator);

$sender->send(new Sms($phone_number, $text));
```

Simple Manual
-------------

[](#simple-manual)

- [Message sender](docs/sender.md)
- [SMS](docs/sms_message.md)
- [Viber](docs/viber_message.md)
- [Multi channel message](docs/multichannel_message.md)
- [Bulk message/Campaign](docs/bulk.md)
- [Schedulers](docs/schedulers.md)
- [Configurators](docs/configurators.md)
- [Number checker](docs/number_checker.md)

API administration &amp; tokens
-------------------------------

[](#api-administration--tokens)

[API administration](https://help.bulkgate.com/docs/en/api-administration.html)

[API token](https://help.bulkgate.com/docs/en/api-tokens.html)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance43

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.2% 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 ~581 days

Total

3

Last Release

446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e69bbc1e1adb7622a26014ca06af6df0dae7ef2cdc4915e16366497802500d65?d=identicon)[lukaspijak](/maintainers/lukaspijak)

---

Top Contributors

[![lukaspijak](https://avatars.githubusercontent.com/u/2571714?v=4)](https://github.com/lukaspijak "lukaspijak (37 commits)")[![marekpijak](https://avatars.githubusercontent.com/u/26432990?v=4)](https://github.com/marekpijak "marekpijak (30 commits)")

---

Tags

bulkgatenettenette-extensionnette-frameworkphpsdksdk-phpsmssms-apiviberviber-apinettesmsviberbulkgate

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bulkgate-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/bulkgate-php-sdk/health.svg)](https://phpackages.com/packages/bulkgate-php-sdk)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[nette/schema

📐 Nette Schema: validating data structures against a given Schema.

1.0k336.4M125](/packages/nette-schema)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[tracy/tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.

1.8k24.4M1.3k](/packages/tracy-tracy)[nette/neon

🍸 Nette NEON: encodes and decodes NEON file format.

93562.1M333](/packages/nette-neon)

PHPackages © 2026

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