PHPackages                             ondrejbalko/euro-sms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ondrejbalko/euro-sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ondrejbalko/euro-sms
====================

1.1.0(1y ago)0212—8.3%GPL-3.0PHPPHP ^8.3 || ^8.4

Since Mar 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ondrejbalko/euro-sms)[ Packagist](https://packagist.org/packages/ondrejbalko/euro-sms)[ RSS](/packages/ondrejbalko-euro-sms/feed)WikiDiscussions master Synced 3w ago

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

EuroSMS
=======

[](#eurosms)

[EuroSMS](https://www.eurosms.com/) is an SMS gateway operating in Slovakia. The library uses REST api v3 for communication.

Examples
--------

[](#examples)

### Send one

[](#send-one)

```
use EuroSms\Config;
use EuroSms\Entities\Message\Message;
use EuroSms\Entities\Recipient\Recipient;
use EuroSms\EuroSmsService;

$config = new Config;
$config->setDebugMode(true);
$config->setId('euro-sms-id');
$config->setKey('euro-sms-key');
$config->setTestMode(true);
$config->setDebugMode(true);

if ($config->isDebugMode()) {
    error_reporting(E_ALL);
    ini_set('display_errors', 'on');
    ini_set('display_startup_errors', 'on');
}

$euroSmsService = new EuroSmsService($config);

$recipient = new Recipient('0901 000 000');

$message = new Message;
$message->setDateTimeZone(new DateTimeZone('Europe/Bratislava'));
$message->setSenderName('MyName');
$message->setContent('Hello world!');
$message->setRecipient($recipient);

$response = $euroSmsService->sendOne($message);

/**
 * denied messages
 */
dump($response->getDenied());

/**
 * failed messages
 */
dump($response->getFailed());

/**
 * sent messages
 */
dump($response->getSent());

/**
 * $response->getDenied(), $response->getFailed(), $response->getSent() - all 3 got same response format
 */
$resp = [
    '4125eadc-68ba-41b9-929b-2563ecd95421' => [ // request and response id, generated locally
        [
            'number' => '0901000000',
            'uuid' => [
                '55b42acb-6862-43a3-81ae-1fa354ba3c6e', // if message is long and did not fit into one sms, there are multiple response ids, you can use them later to check message status in euro sms service
                'c8a8bc0f-76ad-4133-9522-75c91b6f2ee8'
            ]
        ]
    ]
];

/**
 * message that was sent
 */
dump($response->getMessage());

/**
 * see what requests was build and prepared for send
 */
dump($response->getRequestCollection());

/**
 * see what responses was received from euro sms service
 */
dump($response->getResponseCollection());
```

### Send one to many

[](#send-one-to-many)

```
use EuroSms\Config;
use EuroSms\Entities\Message\Message;
use EuroSms\Entities\Recipient\Recipient;
use EuroSms\EuroSmsService;

$config = new Config;
$config->setDebugMode(true);
$config->setId('euro-sms-id');
$config->setKey('euro-sms-key');

$euroSmsService = new EuroSmsService($config);

$recipientCollection = new RecipientCollection;
$recipientCollection->offsetSet('some key', '0901 000 000');
$recipientCollection->offsetSet(null, new Recipient('0901 000 001'));
$recipientCollection[] = new Recipient('+421901000002');
$recipientCollection[] = new Recipient('0901000003');
$recipientCollection[] = new Recipient('00421 0901 000 004');

$message = new Message;
$message->setDateTimeZone(new DateTimeZone('Europe/Bratislava'));
$message->setSenderName('MyName');
$message->setContent('Hello world!');
$message->setRecipientCollection($recipientCollection);

$response = $euroSmsService->sendOneToMany($message);

dump($response);
```

### Send many to many

[](#send-many-to-many)

```
use EuroSms\Config;
use EuroSms\Entities\Message\Message;
use EuroSms\Entities\Recipient\Recipient;
use EuroSms\EuroSmsService;

$config = new Config;
$config->setDebugMode(true);
$config->setId('euro-sms-id');
$config->setKey('euro-sms-key');

$euroSmsService = new EuroSmsService($config);

$messageCollection = new MessageCollection;

$recipientCollection = new RecipientCollection;
$recipientCollection->offsetSet('some key', '0901 000 000');
$recipientCollection->offsetSet(null, new Recipient('0901 000 001'));
$recipientCollection[] = new Recipient('+421901000002');
$recipientCollection[] = new Recipient('0901000003');
$recipientCollection[] = new Recipient('00421 0901 000 004');

$message1 = new Message;
$message1->setDateTimeZone(new DateTimeZone('Europe/Bratislava'));
$message1->setSenderName('MyName');
$message1->setContent('Hello world!');
$message1->setRecipientCollection($recipientCollection);

$messageCollection->offsetSet($message1->getId(), $message1);

$recipientCollection = new RecipientCollection;
$recipientCollection[] = new Recipient('0901 000 000');
$recipientCollection[] = new Recipient('00421 0901 000 001');

$message2 = new Message;
$message2->setDateTimeZone(new DateTimeZone('Europe/Bratislava'));
$message2->setSenderName('MyName 2');
$message2->setContent('Hello world 2!');
$message2->setRecipientCollection($recipientCollection);

$messageCollection[$message2->getId()] = $message2;

$response = $euroSmsService->sendManyToMany($messageCollection);

dump($response);
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance46

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~432 days

Total

2

Last Release

400d ago

PHP version history (2 changes)1.0.0PHP ^8.3

1.1.0PHP ^8.3 || ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b761abd327cd65252b874334274f0ad1386c853e56b38112f58b797154f2303?d=identicon)[ondrej.balko](/maintainers/ondrej.balko)

---

Top Contributors

[![ondrejbalko](https://avatars.githubusercontent.com/u/62694774?v=4)](https://github.com/ondrejbalko "ondrejbalko (6 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ondrejbalko-euro-sms/health.svg)

```
[![Health](https://phpackages.com/badges/ondrejbalko-euro-sms/health.svg)](https://phpackages.com/packages/ondrejbalko-euro-sms)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.8k69.4k](/packages/grumpydictator-firefly-iii)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k37](/packages/civicrm-civicrm-core)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9742.3M121](/packages/roots-acorn)

PHPackages © 2026

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