PHPackages                             netlabs/sms-gateway-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. [API Development](/categories/api)
4. /
5. netlabs/sms-gateway-bundle

ActiveSymfony-bundle[API Development](/categories/api)

netlabs/sms-gateway-bundle
==========================

SMS Gateway for serwersms.pl API

1.0.0(12y ago)134MIT and Apache-2.0PHPPHP &gt;=5.3.3

Since Apr 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/netlabspl/NetLabsSMSGatewayBundle)[ Packagist](https://packagist.org/packages/netlabs/sms-gateway-bundle)[ Docs](http://github.com/netlabspl/NetLabsSMSGatewayBundle)[ RSS](/packages/netlabs-sms-gateway-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

NetLabsSMSGatewayBundle
=======================

[](#netlabssmsgatewaybundle)

---

SMS Gateway for serwersms.pl API

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

[](#installation)

---

- composer.json

```
"require": {
    "netlabs/sms-gateway-bundle": "1.0.*"
}
```

- app/AppKernel.php

```
new NetLabs\SMSGatewayBundle\NetLabsSMSGatewayBundle()
```

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

[](#configuration)

---

- app/config/config.yml

```
net_labs_sms_gateway:
    # serwersms.pl
    api:
        username: testuser
        password: testpassword
```

Basic Usage
-----------

[](#basic-usage)

---

#### Sending SMS message

[](#sending-sms-message)

```
$smsService = $this->get('net_labs_sms');

$message = $smsService->compose()
    ->setReceiver('123123123')
    ->setContent('This is a test message.');

$result = $smsService->send($message);
```

#### Receiving incoming SMS messages

[](#receiving-incoming-sms-messages)

```
$smsService = $this->get('net_labs_sms');

$messages = $smsService->receive();

```

#### Receiving messages delivery reports

[](#receiving-messages-delivery-reports)

```
$smsService = $this->get('net_labs_sms');

$reports = $smsService->getReports();

```

#### Checking messages limit counters

[](#checking-messages-limit-counters)

```
$smsService = $this->get('net_labs_sms');

$counters = $smsService->getCounters();

```

#### HLR - Checking main and current networks for phone number

[](#hlr---checking-main-and-current-networks-for-phone-number)

```
$smsService = $this->get('net_labs_sms');

$result = $smsService->hlr('123123123');

```

Advanced Usage
--------------

[](#advanced-usage)

---

#### Sending SMS message

[](#sending-sms-message-1)

```
$smsService = $this->get('net_labs_sms');

$message = $smsService->compose()
    ->setReceiver('123123123')              // receiver's phone number
    ->setContent('This is a test message.') // message content
    ->setSenderName('Test Name');           // max 11 chars
    ->setIsFlash(false)                     // send as flash message - directly to the screen
    ->setIsWapPush(false)                   // send as WapPush message
    ->setIsUTF8(false)                      // set encoding to utf8, so you can use for example polish characters (ąśćźńęółż)
    ->setIsVCard(false)                     // send as VCard message
    ->setSentAt(new \DateTime('+1 hour'))   // set date for delayed delivery
    ->setUsmsid(uniqid());                  // custom unique message ID

$result = $smsService->send($message);
```

#### Receiving incoming SMS messages

[](#receiving-incoming-sms-messages-1)

```
$smsService = $this->get('net_labs_sms');

$messages = $smsService->receive(
    $setAsRead, // sets message as read after receiving, so it won't be received next time
    $number,    // phone number
    $startDate, // date range
    $endDate,   // date range
    $type,      // message type
    $ndi,       // NDI
    $getSmsId   // gets messages with custom message ID
);

```

#### Receiving messages delivery reports

[](#receiving-messages-delivery-reports-1)

```
$smsService = $this->get('net_labs_sms');

$reports = $smsService->getReports(
    $number,    // phone number
    $startDate, // date range
    $endDate,   // date range
    $smsId,     // smsId from serwersms.pl
    $usmsid     // custom message ID
);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4420d ago

### Community

Maintainers

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

---

Top Contributors

[![japcok](https://avatars.githubusercontent.com/u/628596?v=4)](https://github.com/japcok "japcok (10 commits)")

---

Tags

smsserwersmsnetlabs

### Embed Badge

![Health badge](/badges/netlabs-sms-gateway-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/netlabs-sms-gateway-bundle/health.svg)](https://phpackages.com/packages/netlabs-sms-gateway-bundle)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[aloha/twilio

Twilio API for Laravel

4733.6M5](/packages/aloha-twilio)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1102.8M18](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1101.9M5](/packages/plivo-php-sdk)[smsapi/php-client

SMSAPI API PHP Client

652.1M17](/packages/smsapi-php-client)[africastalking/africastalking

Official Africa's Talking PHP SDK

122557.6k10](/packages/africastalking-africastalking)

PHPackages © 2026

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