PHPackages                             gawel1/payline-zf2 - 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. gawel1/payline-zf2

ActiveZf2-module

gawel1/payline-zf2
==================

ZF2 module to using Payline SDK

41.3kPHP

Since Sep 22Pushed 11y ago4 watchersCompare

[ Source](https://github.com/Gawel1/payline-zf2)[ Packagist](https://packagist.org/packages/gawel1/payline-zf2)[ RSS](/packages/gawel1-payline-zf2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

payline-zf2
===========

[](#payline-zf2)

Based on Payline SDK, Payline-zf2 allows you to use it in a zf2 service. Payline is a way to do credit card payments online.

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

[](#installation)

This is installable via [Composer](https://getcomposer.org/) as [gawel1/payline-zf2](https://packagist.org/packages/gawel1/payline-zf2).

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

First, Copy the payline.local.php.dist in your application config and set the file with your own configuration. Then, you can get the payline service with the following code :

```
$this->getServiceLocator()->get('payline');
```

#### Do a web payment

[](#do-a-web-payment)

```
       $uri = $this->getRequest()->getUri();
       $base = sprintf('%s://%s', $uri->getScheme(), $uri->getHost());
       $response = $this->getServiceLocator->get('payline')->doWebPayment([
           'returnURL'    => $base . $this->url()->fromRoute('home'),
            'cancelURL'    => $base . $this->url()->fromRoute('home'),
            'payment'      => [
                'amount'         => 100,
                'action'         => 101,
                'currency'       => 978,
                'mode'           => PaylineService::CASH_PAYMENT,
                'contractNumber' => $this->getServiceLocator()->get('config')['payline']['contractNumber']
            ],
            'order'        => [
                'amount'   => 100,
                'ref'      => 1,
                'currency' => 978
            ]
        ]);
```

### Payline web services informations

[](#payline-web-services-informations)

To see more informations about Payline and the API's, download [this document](https://support.payline.com/hc/fr/articles/201080786-Descriptif-des-appels-webservices-de-la-solution-de-paiement-Payline).

To see more informations about the Payline SDK, download [this document](http://www.payline.com/images/moduleskitsdocs/kit_integration_php_v1.a.pdf)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5de8b9a6e93feaa9c424efb7c247225e6fb8a450a7fa06e0b9b60f984a0aa0c0?d=identicon)[Gawel1](/maintainers/Gawel1)

---

Top Contributors

[![Gawel1](https://avatars.githubusercontent.com/u/5802344?v=4)](https://github.com/Gawel1 "Gawel1 (36 commits)")

### Embed Badge

![Health badge](/badges/gawel1-payline-zf2/health.svg)

```
[![Health](https://phpackages.com/badges/gawel1-payline-zf2/health.svg)](https://phpackages.com/packages/gawel1-payline-zf2)
```

PHPackages © 2026

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