Download the PHP package ondrejbalko/euro-sms without Composer
On this page you can find all versions of the php package ondrejbalko/euro-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ondrejbalko/euro-sms
More information about ondrejbalko/euro-sms
Files in ondrejbalko/euro-sms
Package euro-sms
Short Description PHP client for the EuroSMS gateway: sending, delivery statuses, CallBack notifications and Viber over SMS API v3.1.15.
License GPL-3.0-only
Homepage https://github.com/ondrejbalko/euro-sms
Informations about the package euro-sms
EuroSMS
EuroSMS is an SMS gateway operating in Slovakia. This is a PHP client for its REST interface, written against SMS API v3.1.15 — the specification EuroSMS publishes for the gateway, and the document every chapter number in this documentation points at.
The library sends one message, one message to many numbers, or many messages in one transaction; it asks for delivery statuses, takes CallBack notifications apart, and carries a Viber variant of a message where one is wanted.
Requirements
- PHP 8.5 or newer
- the
jsonandmbstringextensions
The library is written against PHP 8.5 and uses its syntax, so it cannot be installed on an older runtime.
Installation
Quick start
Turn setTestMode(false) off only once the answer looks the way it should — in test mode the
gateway answers exactly as it would, and delivers nothing.
Documentation
| Document | What is in it |
|---|---|
| Configuration | credentials, test mode, timeouts, TLS, concurrency, PSR-18 and PSR-17 |
| The message | sender, text, GSM 03.38 and segments, flags, scheduling, time to live |
| Recipients | numbers, E.164, country, a key of your own on a recipient |
| Send one | sendOne() — one message to one number |
| Send one to many | sendOneToMany() — one text to a list of numbers |
| Send many to many | sendManyToMany() — many messages in one transaction |
| Viber | a Viber variant of a message and what happens when it does not get through |
| Delivery status | getStatusOne(), getStatusGroup(), getStatusAny() |
| CallBack notifications | receipts and incoming messages pushed to an endpoint of yours |
| Logging | what is written into a PSR-3 logger, and what is masked out of it |
| Errors | every exception, every error code, and what to do about each |
| Using it elsewhere | plain PHP, Symfony, Laravel, Nette, and sending from a queue |
| Upgrading to 2.0 | what changed since 1.x and how to move |
The version history and the full list of incompatible changes are in CHANGELOG.md.
Checks
License
GPL-3.0-only. See LICENSE.
All versions of euro-sms with dependencies
ext-json Version *
ext-mbstring Version *
giggsey/libphonenumber-for-php-lite Version ^9.0
guzzlehttp/guzzle Version ^7.15
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/log Version ^3.0
ramsey/uuid Version ^4.9