PHPackages                             interactive-solutions/zf-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. interactive-solutions/zf-sms

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

interactive-solutions/zf-sms
============================

Interactive Solutions extension for 46Elk

1.0.3(8y ago)1123PHPPHP ^7.0.0

Since May 24Pushed 8y ago2 watchersCompare

[ Source](https://github.com/interactive-solutions/zf-sms)[ Packagist](https://packagist.org/packages/interactive-solutions/zf-sms)[ RSS](/packages/interactive-solutions-zf-sms/feed)WikiDiscussions master Synced 2d ago

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

zf-sms
======

[](#zf-sms)

Zend Framework 2+ library to send sms. Supported providers are currently:

- 46elks

Setup
=====

[](#setup)

Copy the `interactivesolutions.sms.global.php.dist` file into your autoload and specify your `apiUsername`, `apiPassword`from 46elks dashboard. `number` specifies which sender should the sms should be sent from, this can be a phone number (created through 46elks) or a string between 3-11 characters.

Delivery reports
----------------

[](#delivery-reports)

If you want to receive delivery reports, specify the `callbackUrl` in the `SmsOptions`. This lib provides you with a finished `DeliveryReportCollectionController` or you can write your own. Usage of the existing controller allows you to update the `DeliveryReportEntity` created by this lib by simply adding a route for the controller.

Code to setup existing controller:

```
use InteractiveSolutions\Sms\Controller\DeliveryReportCollectionController;
use Zend\Mvc\Router\Http\Literal;

return [
    'sms-delivery-reports' => [
        'type'    => Literal::class,
        'options' => [
            'route'    => '/callback-url-from-options',
            'defaults' => [
                'controller' => DeliveryReportCollectionController::class
            ],
        ],
    ],
];
```

Usage
=====

[](#usage)

Just import the `SmsService` and call it with a valid `SmsMessage` and you're all done!

Background task
---------------

[](#background-task)

We recommend you to run the send sms in a background task using Bernard due to possible delays with sending the text. This lib also provides the a background task for this purpose with the `SendSmsTask` if used in combination with [Interactive Solutions Zf-Bernard](https://github.com/interactive-solutions/zf-bernard). For a more detailed guide to zf-bernard please take a look at that repository.

Code to send sms in background:

```
use InteractiveSolutions\Bernard\Producer;
...
//code to create/config bernard producer
...

$sms = new SmsMessage(
    '+46700000000',,
    'Hello World'
);

$producer->produce($sms);
```

Note: The Interactive Solutions Zf-bernard is not a dependency of this project and would require a manual install to be used.

License
=======

[](#license)

Copyright (c) 2017 Interactive Solutions Bodama AB

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~49 days

Total

4

Last Release

3131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/825f7193bec88275f660c65faab1790ed620948f5dd7a6c96515d1f12609127d?d=identicon)[mac\_nibblet](/maintainers/mac_nibblet)

---

Top Contributors

[![noggan](https://avatars.githubusercontent.com/u/7058221?v=4)](https://github.com/noggan "noggan (7 commits)")[![awartoft](https://avatars.githubusercontent.com/u/1127626?v=4)](https://github.com/awartoft "awartoft (4 commits)")

---

Tags

bernardphpsmszend-framework

### Embed Badge

![Health badge](/badges/interactive-solutions-zf-sms/health.svg)

```
[![Health](https://phpackages.com/badges/interactive-solutions-zf-sms/health.svg)](https://phpackages.com/packages/interactive-solutions-zf-sms)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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