PHPackages                             resursbank/ecomphp - 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. resursbank/ecomphp

ActiveLibrary

resursbank/ecomphp
==================

Resurs Bank AB ecommerce library for PHP.

1.3.90(3y ago)142.3k↓45.8%5Apache-2.0PHP

Since Jun 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ResursBank/ecomphp)[ Packagist](https://packagist.org/packages/resursbank/ecomphp)[ RSS](/packages/resursbank-ecomphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (203)Used By (5)

EComPHP - Resurs Bank ECommerce Library for PHP
===============================================

[](#ecomphp---resurs-bank-ecommerce-library-for-php)

Resurs EComPHP Gateway for Resurs Bank shop flows, with functionality enough to getting started fast. It communicates with the Simplified Flow API for booking payments, Configuration Service and the After Shop Service API for finalizing, crediting and annulments etc. This full version of the gateway communicates with Hosted Payment Flow and Resurs Checkout (supporting both REST and SOAP). A PHP-reference for EComPHP is located at , if you want to take a look at our automatically generated documentation.

As EComPHP is continuously developed, you should take a look at our bitbucket repo to keep this information updated. It can be found at

Why are there big jumps in the version numbering?
-------------------------------------------------

[](#why-are-there-big-jumps-in-the-version-numbering)

From time to time, we create unofficial internal hotfixes for which bypasses the regular task creation. We should really consider adding those updates to tasks (by reviewing commits), but sometimes it's also very much about spellchecking and docblock adjustments. They are rarely connected to tasks. The gaps are filled in with "- x.x.x" where the dash stands for "up to this version, those changes has been made".

Regular requirements, dependencies and information
--------------------------------------------------

[](#regular-requirements-dependencies-and-information)

- EComPHP 1.3 was written for PHP 5.6, but there's no longer any guarantee for it to work in legacy systems. Make sure to upgrade.
- [OpenSSL](https://www.openssl.org) - or similar. SSL drivers are *required* for communication with Resurs Bank.
- [curl](https://curl.haxx.se): php-curl with SSL support (Make sure the above SSL requirement is fulfilled!).
- php-xml and streams (For the SOAP parts).
- EComPHP uses [NetCURL](https://www.netcurl.org) for "mixed calls" (SOAP vs REST). The packagist component is located [here](https://www.netcurl.org/packagist).
- If you plan to *ONLY* use Resurs Checkout (checkout only, with no aftershop, callbacks or needs of listing payment methods etc) - there should be no need for SoapClient.

Revoked Releases
----------------

[](#revoked-releases)

- EComPHP 1.2 has been revoked entirely.
- EComPHP 1.1 and 1.0 is no longer officially maintained (july 2020).

Testing: Bamboo, github actions and bitbucket pipelines
-------------------------------------------------------

[](#testing-bamboo-github-actions-and-bitbucket-pipelines)

EComPHP is tested within a few different suites. Due to the lack of "test time", tests are not entirely fulfilled in the Bitbucket Cloud, which is why tests also are executed from other places on commits. Below is a list of those instances.

- [GitHub Actions 5.6+7.3-8.0](https://github.com/ResursBank/ecomphp/actions).
- [Bitbucket Pipelines (7.3-8.0)](https://bitbucket.org/resursbankplugins/resurs-ecomphp/addon/pipelines/home).
- [Atlassian Bamboo (inofficial tests, 7.3+8.0)](https://bamboo.tornevall.net/browse/RB-RBT).

### Verified PHP releases

[](#verified-php-releases)

Take a look at [this page](https://www.php.net/supported-versions.php) if you're unsure which PHP versions that are still supported by the PHP team. As of february 2020, only 7.3 and 7.4 have full support open. 7.2 still do have security patch support, but is on deprecation. All older versions are completely unsupported and should probably get upgrade by you also.

```
7.3 - 8.0 - Supported, autotests active.
5.6 - 7.2 - SUpported, no autotests, [EOL by PHP](https://www.php.net/supported-versions.php).

```

Installing
----------

[](#installing)

For Ubuntu, you can quickly fetch those with apt-get like below, if your system is missing them:

```
apt-get install php-curl php-xml php-soap

```

There might be a slight chance that you also need openssl or similar, as our services runs on https-only (normally openssl are delivered automatically, but sometimes they do not - apt-get install openssl might work in those cases if you have access to the server).

### Using composer

[](#using-composer)

```
composer require resursbank/ecomphp:^1.3

```

### Self deployed packages

[](#self-deployed-packages)

If you are planning to deploy a plugin bundled with this package, you can run composer with the parameter --prefer-dist You should also make sure that the repositories that is also downloaded together with this package is cleaned up properly: The .git directories must be removed, or a composer install is required before using it. Such deployment could look like this:

```
#!/bin/bash
composer clearcache
rm -rf vendor composer.lock
composer install --prefer-dist
find vendor/ -type d -name .git -exec rm -rf {} \; >/dev/null 2>&1
find vendor/ -name .gitignore -exec rm {} \; >/dev/null 2>&1

```

### Getting started

[](#getting-started)

This is a short example of how to get started, but you can [take a look at our documentation for details and getting started for real](https://test.resurs.com/docs/x/TYNM).

```

```

What this library do and do not
-------------------------------

[](#what-this-library-do-and-do-not)

- If you are used to work with the simplified flow and wish to use Hosted/Checkout, you can stick to the use of the older SimplifiedFlow variables, as this library converts what's missing between the different flows.
- The EComPHP-library takes care of many things that developers usually miss in their development. Especially the payload handling.
- Both SOAP and REST is supported, under the condition that there are drivers available for it.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.7% 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 ~10 days

Recently: every ~28 days

Total

191

Last Release

1216d ago

PHP version history (4 changes)1.1.9PHP ~5.3.0|~5.4.0|~5.5.0|~5.6.0|~7.0.0

1.1.22PHP ~5.3.0|~5.4.0|~5.5.0|~5.6.0|~7.0.0|~7.1.0|~7.2.0

1.3.13PHP &gt;=5.3

1.3.25PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5044832?v=4)[Thomas Tornevall](/maintainers/Tornevall)[@Tornevall](https://github.com/Tornevall)

![](https://www.gravatar.com/avatar/7b5e086591e55234c96c6d7c23af64c59993b7117cbc186999f3c7c2a69126c8?d=identicon)[Resursbank](/maintainers/Resursbank)

![](https://www.gravatar.com/avatar/2c573f57758becedd1af7f8376869c54883d9ffca4702a1d2891b76e0f2d9647?d=identicon)[MageParts](/maintainers/MageParts)

---

Top Contributors

[![Tornevall](https://avatars.githubusercontent.com/u/5044832?v=4)](https://github.com/Tornevall "Tornevall (1593 commits)")[![thomas-tornevall-resurs](https://avatars.githubusercontent.com/u/203850477?v=4)](https://github.com/thomas-tornevall-resurs "thomas-tornevall-resurs (3 commits)")[![mikael-jacobson-resurs](https://avatars.githubusercontent.com/u/101631137?v=4)](https://github.com/mikael-jacobson-resurs "mikael-jacobson-resurs (2 commits)")

### Embed Badge

![Health badge](/badges/resursbank-ecomphp/health.svg)

```
[![Health](https://phpackages.com/badges/resursbank-ecomphp/health.svg)](https://phpackages.com/packages/resursbank-ecomphp)
```

PHPackages © 2026

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