PHPackages                             k3dsarl/payline-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. [Payment Processing](/categories/payments)
4. /
5. k3dsarl/payline-sdk

ActiveLibrary[Payment Processing](/categories/payments)

k3dsarl/payline-sdk
===================

Payline library for PHP - test with monolog 3.0 for symfony 6

v1(3y ago)0301LGPL-3.0PHPPHP &gt;=5.6

Since Dec 16Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/747daa571b2e416b977644aab12e7e919bae57f1fe6d5560d39ef06b0c5eb444/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6578742f7061796c696e652d73646b2f762f737461626c65)](https://packagist.org/packages/monext/payline-sdk)[![Total Downloads](https://camo.githubusercontent.com/5a8e9e86f8ff911058493ffd1e333c881e506b4c2d4306e378ff00e78c0350bc/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6578742f7061796c696e652d73646b2f646f776e6c6f616473)](https://packagist.org/packages/monext/payline-sdk)[![License](https://camo.githubusercontent.com/6cbf57a0003d3b32db6538b32ffd1b31f544f38354bc35539c0c0b52a46768ed/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6578742f7061796c696e652d73646b2f6c6963656e7365)](https://packagist.org/packages/monext/payline-sdk)

PaylineSDK - Payline library for PHP
====================================

[](#paylinesdk---payline-library-for-php)

Usage
-----

[](#usage)

```
    use Payline\PaylineSDK;

    // create an instance
    $paylineSDK = new PaylineSDK($merchant_id,$access_key, $proxy_host, $proxy_port, $proxy_login, $proxy_password, $environment[, $pathLog= null[, $logLevel = Logger::INFO[, $externalLogger = null[, $defaultTimezone = "Europe/Paris"]]]]);
    /*
    $merchant_id, the merchant identifier, has to be a string.
    $environment determines in which Payline environment your request are targeted.
    It should be filled with either PaylineSDK::ENV_HOMO (for testing purpose) or PaylineSDK::ENV_PROD (real life)
    If $pathLog is null, log files will be written under default logs directory. Fill with your custom log files path
    */

    // call a web service, for example doWebPayment
    $doWebPaymentRequest = array();

    $doWebPaymentRequest['cancelURL'] = 'https://Demo_Shop.com/cancelURL.php';
    $doWebPaymentRequest['returnURL'] = 'https://Demo_Shop.com/returnURL.php';
    $doWebPaymentRequest['notificationURL'] = 'https://Demo_Shop.com/notificationURL.php';

    // PAYMENT
	$doWebPaymentRequest['payment']['amount'] = 1000; // this value has to be an integer amount is sent in cents
	$doWebPaymentRequest['payment']['currency'] = 978; // ISO 4217 code for euro
	$doWebPaymentRequest['payment']['action'] = 101; // 101 stand for "authorization+capture"
	$doWebPaymentRequest['payment']['mode'] = 'CPT'; // one shot payment

	// ORDER
	$doWebPaymentRequest['order']['ref'] = 'myOrderRef_35656'; // the reference of your order
	$doWebPaymentRequest['order']['amount'] = 1000; // may differ from payment.amount if currency is different
	$doWebPaymentRequest['order']['currency'] = 978; // ISO 4217 code for euro

	// CONTRACT NUMBERS
	$doWebPaymentRequest['payment']['contractNumber'] = '1234567';

	$doWebPaymentResponse = $paylineSDK->doWebPayment($doWebPaymentRequest);
```

Docs
====

[](#docs)

See the doc/ directory for more detailed documentation. More information available on .

About
=====

[](#about)

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

[](#requirements)

Compliant with PHP 5.6 and over Requires monolog/monolog and symfony/cache, just let Composer do the job

In order to make http call for failover, ext-curl is mark has required, it can be commented if you disable failover or set allow\_url\_fopen to true in php.ini (in order to use file\_get\_contents)

Author
------

[](#author)

Payline support -

License
-------

[](#license)

Payline is licensed under the LGPL-3.0+ License - see the LICENSE file for details

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

1239d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e8f2df0644a99c7f44fc06a0ed58777393fd6922dac42984d74892b1a2fbb48?d=identicon)[k3dsarl](/maintainers/k3dsarl)

---

Top Contributors

[![PaylineGitHub](https://avatars.githubusercontent.com/u/15379990?v=4)](https://github.com/PaylineGitHub "PaylineGitHub (24 commits)")[![vpietri-tbd](https://avatars.githubusercontent.com/u/33027645?v=4)](https://github.com/vpietri-tbd "vpietri-tbd (22 commits)")[![CharlelieBouvier](https://avatars.githubusercontent.com/u/43992705?v=4)](https://github.com/CharlelieBouvier "CharlelieBouvier (22 commits)")[![ColonelMoutarde](https://avatars.githubusercontent.com/u/4697568?v=4)](https://github.com/ColonelMoutarde "ColonelMoutarde (12 commits)")[![k3dsarl](https://avatars.githubusercontent.com/u/118427096?v=4)](https://github.com/k3dsarl "k3dsarl (4 commits)")[![monext-ofrancome](https://avatars.githubusercontent.com/u/57134182?v=4)](https://github.com/monext-ofrancome "monext-ofrancome (3 commits)")[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (3 commits)")[![llaville](https://avatars.githubusercontent.com/u/364342?v=4)](https://github.com/llaville "llaville (3 commits)")[![AntoineLemaire](https://avatars.githubusercontent.com/u/2025537?v=4)](https://github.com/AntoineLemaire "AntoineLemaire (2 commits)")[![Nickinthebox](https://avatars.githubusercontent.com/u/2796997?v=4)](https://github.com/Nickinthebox "Nickinthebox (1 commits)")[![nicogodon](https://avatars.githubusercontent.com/u/28106944?v=4)](https://github.com/nicogodon "nicogodon (1 commits)")[![neopheus](https://avatars.githubusercontent.com/u/5160844?v=4)](https://github.com/neopheus "neopheus (1 commits)")[![RomulusED69](https://avatars.githubusercontent.com/u/9000452?v=4)](https://github.com/RomulusED69 "RomulusED69 (1 commits)")[![CyrilleH](https://avatars.githubusercontent.com/u/4086479?v=4)](https://github.com/CyrilleH "CyrilleH (1 commits)")[![nicolasdewez](https://avatars.githubusercontent.com/u/8275576?v=4)](https://github.com/nicolasdewez "nicolasdewez (1 commits)")

---

Tags

paymentPaylineMonext

### Embed Badge

![Health badge](/badges/k3dsarl-payline-sdk/health.svg)

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

###  Alternatives

[shetabit/payment

Laravel Payment Gateway Integration Package

944330.1k5](/packages/shetabit-payment)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24553.7k](/packages/larabook-gateway)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)

PHPackages © 2026

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