PHPackages                             thuliumcc/serwersms-php-api-v2 - 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. thuliumcc/serwersms-php-api-v2

ActiveLibrary[API Development](/categories/api)

thuliumcc/serwersms-php-api-v2
==============================

SerwerSMS API PHP

1.0.1(11y ago)031.6k↓13.5%PHPPHP &gt;=5.3.0

Since Jan 9Pushed 7y ago6 watchersCompare

[ Source](https://github.com/thuliumcc/serwersms-php-api-v2)[ Packagist](https://packagist.org/packages/thuliumcc/serwersms-php-api-v2)[ Docs](http://github.com/SerwerSMSpl/serwersms-php-api-v2)[ RSS](/packages/thuliumcc-serwersms-php-api-v2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

SerwerSMS.pl PHP Client API v2
==============================

[](#serwersmspl-php-client-api-v2)

Klient PHP do komunikacji zdalnej z API v2 SerwerSMS.pl

Zalecane jest, aby komunikacja przez HTTPS API odbywała się z loginów utworzonych specjalnie do połączenia przez API. Konto użytkownika API można utworzyć w Panelu Klienta → Ustawienia interfejsów → HTTPS XML API → Użytkownicy.

#### Wysyłka SMS

[](#wysyłka-sms)

```
require_once('vendor/autoload.php');

try{
  $serwersms = new SerwerSMS\SerwerSMS('login','haslo');

  // SMS FULL
  $result = $serwersms->messages->sendSms(
            array(
                    '+48500600700',
                    '+48600700800'
            ),
            'Test FULL message',
            'INFORMACJA',
            array(
                    'test' => true,
                    'details' => true
            )
  );

  // SMS ECO
  $result = $serwersms->messages->sendSms(
            array(
                    '+48500600700',
                    '+48600700800'
            ),
            'Test ECO message',
            null,
            array(
                    'test' => true,
                    'details' => true
            )
  );

  // VOICE from text
  $result = $serwersms->messages->sendVoice(
            array(
                    '+48500600700',
                    '+48600700800'
            ),
            array(
                    'text' => 'Test message',
                    'test' => true,
                    'details' => true
            )
  );

  // MMS
  $list = $serwersms->files->index('mms');
  $result = $serwersms->messages->sendMms(
            array(
                    '+48500600700',
                    '+48600700800'
            ),
            'MMS Title',
            array(
                    'test' => true,
                    'file_id' => $list->items[0]->id,
                    'details' => true
            )
  );

  echo 'Skolejkowano: '.$result->queued.'';
  echo 'Niewysłano: '.$result->unsent.'';

  foreach($result->items as $sms){
    echo 'ID: '.$sms->id.'';
    echo 'NUMER: '.$sms->phone.'';
    echo 'STATUS: '.$sms->status.'';
    echo 'CZĘŚCI: '.$sms->parts.'';
    echo 'WIADOMOŚĆ: '.$sms->text.'';
  }

} catch(Exception $e){
  echo 'ERROR: '.$e->getMessage();
}
```

#### Wysyłka spersonalizowanych SMS

[](#wysyłka-spersonalizowanych-sms)

```
require_once('vendor/autoload.php');

try{
  $serwersms = new SerwerSMS\SerwerSMS('login','haslo');

  $messages[] = array(
      'phone' => '500600700',
      'text' => 'First message'
  );
  $messages[] = array(
      'phone' => '600700800',
      'text' => 'Second message'
  );

  $result = $serwersms->messages->sendPersonalized(
            $messages,
            'INFORMACJA',
            array(
                    'test' => true,
                    'details' => true
            )
  );

  echo 'Skolejkowano: '.$result->queued.'';
  echo 'Niewysłano: '.$result->unsent.'';

  foreach($result->items as $sms){
    echo 'ID: '.$sms->id.'';
    echo 'NUMER: '.$sms->phone.'';
    echo 'STATUS: '.$sms->status.'';
    echo 'CZĘŚCI: '.$sms->parts.'';
    echo 'WIADOMOŚĆ: '.$sms->text.'';
  }

} catch(Exception $e){
  echo 'ERROR: '.$e->getMessage();
}
```

#### Pobieranie raportów doręczeń

[](#pobieranie-raportów-doręczeń)

```
require_once('vendor/autoload.php');

try{
  $serwersms = new SerwerSMS\SerwerSMS('login','haslo');

  // Get messages reports
  $result = $serwersms->messages->reports(array('id' => array('aca3944055')));

  foreach($result->items as $sms){
    echo 'ID: '.$sms->id.'';
    echo 'NUMER: '.$sms->phone.'';
    echo 'STATUS: '.$sms->status.'';
    echo 'SKOLEJKOWANO: '.$sms->queued.'';
    echo 'WYSŁANO: '.$sms->sent.'';
    echo 'DORĘCZONO: '.$sms->delivered.'';
    echo 'NADAWCA: '.$sms->sender.'';
    echo 'TYP: '.$sms->type.'';
    echo 'WIADOMOŚĆ: '.$sms->text.'';
  }

} catch(Exception $e){
  echo 'ERROR: '.$e->getMessage();
}
```

#### Pobieranie wiadomości przychodzących

[](#pobieranie-wiadomości-przychodzących)

```
require_once('vendor/autoload.php');

try{
  $serwersms = new SerwerSMS\SerwerSMS('login','haslo');

  // Get recived messages
  $result = $serwersms->messages->recived('ndi');

  foreach($result->items as $sms){
    echo 'ID: '.$sms->id.'';
    echo 'TYP: '.$sms->type.'';
    echo 'NUMER: '.$sms->phone.'';
    echo 'DATA: '.$sms->recived.'';
    echo 'CZARNA LISTA: '.$sms->blacklist.'';
    echo 'WIADOMOŚĆ: '.$sms->text.'';
  }

} catch(Exception $e){
  echo 'ERROR: '.$e->getMessage();
}
```

Wymagania
---------

[](#wymagania)

php &gt;= 5.3.0

lib-curl &gt;= 7.1

Dokumentacja
------------

[](#dokumentacja)

Instalacja
----------

[](#instalacja)

composer.json

```
{
  "require": {
        "serwersms/serwersms-php-client": "1.0.*"
  }
}

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

4193d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2005054?v=4)[Piotr Olaszewski](/maintainers/piotrooo)[@piotrooo](https://github.com/piotrooo)

---

Top Contributors

[![jareksapota](https://avatars.githubusercontent.com/u/10436516?v=4)](https://github.com/jareksapota "jareksapota (17 commits)")[![SerwerSMSpl](https://avatars.githubusercontent.com/u/7964146?v=4)](https://github.com/SerwerSMSpl "SerwerSMSpl (7 commits)")[![piotrooo](https://avatars.githubusercontent.com/u/2005054?v=4)](https://github.com/piotrooo "piotrooo (3 commits)")[![bbankowski](https://avatars.githubusercontent.com/u/3840784?v=4)](https://github.com/bbankowski "bbankowski (1 commits)")

---

Tags

phpapiserwersms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thuliumcc-serwersms-php-api-v2/health.svg)

```
[![Health](https://phpackages.com/badges/thuliumcc-serwersms-php-api-v2/health.svg)](https://phpackages.com/packages/thuliumcc-serwersms-php-api-v2)
```

###  Alternatives

[corsinvest/cv4pve-api-php

Corsinvest Proxmox VE Client API PHP

811.4M](/packages/corsinvest-cv4pve-api-php)[mrkampf/proxmox-ve

Proxmox VE API Client

6040.8k](/packages/mrkampf-proxmox-ve)[jiririedl/php-sendy

PHP class for using sendy API

3066.1k](/packages/jiririedl-php-sendy)[platforg/adobe-connect

Provides a PHP Client to interact with the Adobe Connect's API

1510.3k2](/packages/platforg-adobe-connect)

PHPackages © 2026

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