PHPackages                             ernestre/sms-payment-bundle - 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. [Payment Processing](/categories/payments)
4. /
5. ernestre/sms-payment-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

ernestre/sms-payment-bundle
===========================

SMS payment bundle, with Paysera payment gateway integration.

v1.0(9y ago)015MITPHPPHP &gt;=5.3.2

Since Jan 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ernestre/PaymentBundle)[ Packagist](https://packagist.org/packages/ernestre/sms-payment-bundle)[ RSS](/packages/ernestre-sms-payment-bundle/feed)WikiDiscussions master Synced 1mo ago

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

Symfony Paysera SMS Payment Bundle.
-----------------------------------

[](#symfony-paysera-sms-payment-bundle)

[![Build Status](https://camo.githubusercontent.com/d486eb7e5161f06cc8b06be047c12abe64ff7d78cbc125316039ef422cac86f4/68747470733a2f2f7472617669732d63692e6f72672f65726e65737472652f5061796d656e7442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ernestre/PaymentBundle)

This bundle uses `webtopay/libwebtopay` library for accepting sms payments via [ Paysera ](https://www.paysera.lt/v2/en-LT/index) payment gateway.

Install
=======

[](#install)

`composer require ernestre/sms-payment-bundle`

Configuration
=============

[](#configuration)

- Add bundle to `app/AppKernel`:

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Ernestre\PaymentBundle\ErnestrePaymentBundle(),
            // ...
        );
    }
    // ...
}
```

- Add routes:

```
ernestre_payment:
    resource: "@ErnestrePaymentBundle/Controller/"
    type:     annotation
```

- Add configuration:

```
ernestre_payment:
  project:
    id:             123 # Your project id
    sign_password:  123 # Your project's sign password
```

- Configure sms callback route to `/sms-callback` in your Paysera project settings.

Usage
=====

[](#usage)

After each received payment, `SmsPayment` entity is created and saved to the database.

Then `SmsPaymentReceivedEvent` event is dispatched containing the `SmsPayment` entity with all the payment information.

Then the action sends `NOSMS` response. ( Detailed information about response messages can be found [ here ](https://developers.paysera.com/en/sms-keywords/current). )

Your job is to create a [ listener ](http://symfony.com/doc/current/event_dispatcher.html) which listens to `smsPayment.received` event and do what ever you need with the payment information.

However, using the `NOSMS` response message requires you to send a payment confirmation message back to the Paysera serivce. You can use `ernestre_payment.sms_payment.answer_sender` service to generate this response message. Service's send method requires the `SmsPayment` entity and `response text` (which will be sent to the client). The `response text` can be used to send some king of code (i.e. discount coupon) to the client.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3403d ago

### Community

Maintainers

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

---

Top Contributors

[![ernestre](https://avatars.githubusercontent.com/u/6313452?v=4)](https://github.com/ernestre "ernestre (13 commits)")

---

Tags

payment-informationpaysera

### Embed Badge

![Health badge](/badges/ernestre-sms-payment-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ernestre-sms-payment-bundle/health.svg)](https://phpackages.com/packages/ernestre-sms-payment-bundle)
```

PHPackages © 2026

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