PHPackages                             onesend-gmbh/onesend-php-sdk - 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. onesend-gmbh/onesend-php-sdk

ActiveLibrary[API Development](/categories/api)

onesend-gmbh/onesend-php-sdk
============================

PHP SDK for OneSend messaging service

1.0.2(2y ago)04MITPHPPHP &gt;=8.2

Since Apr 18Pushed 2y agoCompare

[ Source](https://github.com/onesend-gmbh/onesend-php-sdk)[ Packagist](https://packagist.org/packages/onesend-gmbh/onesend-php-sdk)[ RSS](/packages/onesend-gmbh-onesend-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (11)Versions (4)Used By (0)

OneSend API SDK for PHP
=======================

[](#onesend-api-sdk-for-php)

Requirements
------------

[](#requirements)

---

To use the OneSend PHP SDK the following things are required:

- A free [OneSend account](https://onesend.de) (to actually send messages you're required to add balance to your account)
- PHP &gt;= 8.2
- Optional: A [PSR-18 compliant HTTP Client](https://docs.php-http.org/en/latest/httplug/users.html), by default it will use the [Symfony Http Client](https://docs.php-http.org/en/latest/clients/symfony-client.html)

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

[](#installation)

---

### Using Composer

[](#using-composer)

The best way to install the OneSend PHP SDK is by using [Composer](http://getcomposer.org/). You can require it with the following command:

```
composer require onesend-gmbh/onesend-php-sdk

```

Usage
-----

[](#usage)

---

Initialise the SDK by passing the Api Key from your [Project Dashboard](https://onesend.de/en/user/dashboard).

```
$oneSend = new \OnesendGmbh\OnesendPhpSdk\OneSendApi('YOUR KEY HERE');
```

Optionally you can also pass a PSR-18 compliant Client as second argument if you want to modify timeouts/retry behavior or for Testing.

Using the SDK you can now access the following endpoints:

APIResourceCodeLink to Endpoint File[Short Messages API](https://docs.onesend.de/short_messages)Short Messages$oneSend-&gt;shortMessages[ShortMessageEndpoint](https://github.com/onesend-gmbh/onesend-php-sdk/blob/main/src/Endpoints/ShortMessageEndpoint.php)You can find our full documentation [here](https://docs.onesend.de).

Short Messages
--------------

[](#short-messages)

---

### Sending Short Messages (SMS)

[](#sending-short-messages-sms)

[Create Short Message reference](https://docs.onesend.de/short_messages#create-a-short-message)

```
$shortMessage = $oneSend->shortMessages->send([
    'to' => '+4915730955123',
    'from' => 'TEST',
    'message' => 'THIS IS A TEST',
]);
```

This will create a [ShortMessage Resource](https://github.com/onesend-gmbh/onesend-php-sdk/blob/main/src/Resources/ShortMessage.php) with a message ID `$shortMessage->getId()` you can and some other information about the sent short message.

Testing
-------

[](#testing)

---

By default, the SDK will set the [Symfony Http Client](https://docs.php-http.org/en/latest/clients/symfony-client.html) as HTTP Client on initialisation, meaning should you not Mock calls to the SDK, it WILL send request to our service and your tests will most likely fail.
If you don't want to (or can't) mock the calls to the SDK you can also replace the HTTP Client with a Mock Client ([PHP HTTP Mock Client](https://docs.php-http.org/en/latest/clients/mock-client.html) for example) by passing it as the second constructor argument:

```
$mockClient = new Http\Mock\Client();
$oneSend = new \OnesendGmbh\OnesendPhpSdk\OneSendApi('I am a Test', $mockClient);
```

This will replace the default Http Client and will enable you to intercept and validate requests made by the SDK as well as mock responses with the desired outcome.
To see the expected responses please consult our [API docs](https://docs.onesend.de).

###  Health Score

23

↓

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/176c295448d61f93aea6abac296a771596a28738d347737c2eb6eb456a57420b?d=identicon)[OneSend](/maintainers/OneSend)

---

Top Contributors

[![KDederichs](https://avatars.githubusercontent.com/u/24696606?v=4)](https://github.com/KDederichs "KDederichs (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/onesend-gmbh-onesend-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/onesend-gmbh-onesend-php-sdk/health.svg)](https://phpackages.com/packages/onesend-gmbh-onesend-php-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)

PHPackages © 2026

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