PHPackages                             frantatacz/smssluzba - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. frantatacz/smssluzba

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

frantatacz/smssluzba
====================

This PHP library is created for sms-sluzba.cz. It will allow you to send SMS safely and easily.

v0.4(3y ago)630MITPHPPHP &gt;=7.4

Since Jun 30Pushed 3y ago2 watchersCompare

[ Source](https://github.com/FrantataCZ/smssluzba)[ Packagist](https://packagist.org/packages/frantatacz/smssluzba)[ RSS](/packages/frantatacz-smssluzba/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

SMS Služba
==========

[](#sms-služba)

### This PHP library is created for sms-sluzba.cz. It will allow you to send SMS safely and easily.

[](#this-php-library-is-created-for-sms-sluzbacz-it-will-allow-you-to-send-sms-safely-and-easily)

##### The username and password is login to sms-sluzba.cz

[](#the-username-and-password-is-login-to-sms-sluzbacz)

Installation `composer require frantatacz/smssluzba v0.4`

Using

```
require_once "vendor/autoload.php";

$sms = new \FrantataCZ\smssluzba\Sms("username", "password");

$sms->new();
$sms->setRecipient("123123123");
$sms->setMessage("Your SMS text");
$sms->send();
```

```
require_once "vendor/autoload.php";

$template = new \FrantataCZ\smssluzba\Template();
$template->setTemplate("myTemplate", "Hello, my name is {name}.");

$sms = new \FrantataCZ\smssluzba\Sms("username", "password");
$sms->new();
$sms->setRecipient("123123123");
$sms->setMessage($template->getTemplate("myTemplate", ["name" => "John"]));
$sms->send();
```

TryCatch:

```
require_once "vendor/autoload.php";

$template = new \FrantataCZ\smssluzba\Template();
$template->setTemplate("myTemplate", "Hello, my name is {name}.");

$sms = new \FrantataCZ\smssluzba\Sms("username", "password");
$sms->new();

try {
    $sms->addRecipients(["111222333", "2223333444", "888999000"]);
} catch (\FrantataCZ\smssluzba\Exception $e) {
    // Example error message: Phone number 2223333444 isn't valid.
    // Code: 400
}

try {
    $sms->addRecipient("999999999");
} catch (\FrantataCZ\smssluzba\Exception $e) {
    // Error message: Phone number 999999999 isn't valid.
    // Code: 400
}

try {
    $sms->setMessage($template->getTemplate("myTemplate", ["name" => "John"]));
} catch (\FrantataCZ\smssluzba\Exception $e) {
    // Error message: Text message isn't valid. (Max. 459 char.)
    // Code: 400
}
//var_dump($sms->getSMSArray()); => array(2) { ["message"]=> string(23) "Hello, my name is John." ["recipient"]=> array(4) { [0]=> string(9) "111222333" [1]=> string(10) "2223333444" [2]=> string(9) "888999000" [3]=> string(9) "999999999" } }

try {
    $sms->send();
} catch (\FrantataCZ\smssluzba\Exception $e) {
    // Same error from sms-sluzba
    // 400;1 - Chybné telefonní číslo 111222333
    // 400;2 - Chybí text zprávy
    // 401 - Chybné přihlášení
    // 402 - Nedostatečný kredit
    // 503 - Chyba brány
}
```

This library is created to sms-sluzba.cz

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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

Every ~2 days

Total

4

Last Release

1459d ago

### Community

Maintainers

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

---

Top Contributors

[![FrantataCZ](https://avatars.githubusercontent.com/u/56310536?v=4)](https://github.com/FrantataCZ "FrantataCZ (36 commits)")

### Embed Badge

![Health badge](/badges/frantatacz-smssluzba/health.svg)

```
[![Health](https://phpackages.com/badges/frantatacz-smssluzba/health.svg)](https://phpackages.com/packages/frantatacz-smssluzba)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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