PHPackages                             payever/core-sdk-php - 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. payever/core-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

payever/core-sdk-php
====================

Core PHP SDK for payever

2.3.0(2mo ago)042.5k↓30.4%3MITPHPPHP &gt;=5.4.0

Since Mar 30Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/payeverworldwide/core-sdk-php)[ Packagist](https://packagist.org/packages/payever/core-sdk-php)[ Docs](https://github.com/payever/core-sdk-php)[ RSS](/packages/payever-core-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (17)Used By (3)

PHP SDK for payever plugin interactions - internal, not for public use
======================================================================

[](#php-sdk-for-payever-plugin-interactions---internal-not-for-public-use)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0cf3cff6e22f901693b59999e94cce6e560e5789d251d586421bd4c4ca1b9cbe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70617965766572776f726c64776964652f73646b2d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/payeverworldwide/sdk-php/?branch=master)[![Build Status](https://camo.githubusercontent.com/f092570dbd3237318c61ed927c3b498af415278c07656e2d05729c7634dd4bca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70617965766572776f726c64776964652f73646b2d7068702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/payeverworldwide/sdk-php/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/0db99595b472ac957a5d7f4882bc4ad19c7a25377127d620b3af959981a08608/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70617965766572776f726c64776964652f73646b2d7068702f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Latest Stable Version](https://camo.githubusercontent.com/7e7107136085071d064182bce91d3ba3f1b9cb29583a137778319fde12772c63/68747470733a2f2f706f7365722e707567782e6f72672f706179657665722f636f72652d73646b2d7068702f762f737461626c65)](https://packagist.org/packages/payever/core-sdk-php)[![Total Downloads](https://camo.githubusercontent.com/af0e27602a9997ee48de56ce71123150db6757eb51773f528f483a067b9ceaf4/68747470733a2f2f706f7365722e707567782e6f72672f706179657665722f636f72652d73646b2d7068702f646f776e6c6f616473)](https://packagist.org/packages/payever/core-sdk-php)[![License](https://camo.githubusercontent.com/1d93a4b65175c0fdcb8897c2f69270432275c241dc62d2b86771338e24abd16e/68747470733a2f2f706f7365722e707567782e6f72672f706179657665722f636f72652d73646b2d7068702f6c6963656e7365)](https://packagist.org/packages/payever/core-sdk-php)

This repository contains the open source PHP SDK that allows you to access payever from your PHP app.

This library follows semantic versioning. Read more on [semver.org](http://semver.org).

Please note: this SDK is used within the payever plugins. It is NOT suitable for custom API integrations. If you would like to integrate with us via API, please visit  and follow the instructions and code examples provided there.

Troubleshooting
---------------

[](#troubleshooting)

If you faced an issue you can contact us via official support channel -

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

[](#requirements)

- [PHP 5.4.0 and later](http://www.php.net/)
- PHP cURL extension

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

[](#installation)

You can use **Composer**

The preferred method is via [composer](https://getcomposer.org). Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

```
composer require payever/core-sdk-php
```

Documentation
-------------

[](#documentation)

Raw HTTP API docs can be found here -

### Enums

[](#enums)

The are several list of fixed string values used inside API. For convenience they are represented as constants and grouped into classes.

- Core
    - [`ChannelSet`](lib/Payever/Core/Enum/ChannelSet.php) - list of available payever API channels

### API Clients

[](#api-clients)

HTTP API communication with payever happens through API clients. There are several of them for different API categories:

- [`PaymentsApiClient`](#paymentsapiclient)
- [`ThirdPartyApiClient`](#thirdpartyapiclient)
- [`ProductsApiClient`](#productsapiclient)
- [`InventoryApiClient`](#inventoryapiclient)

Each one is described in details below.

#### Configuration

[](#configuration)

Each API client requires configuration object as the first argument of client's constructor. In order to get the valid configuration object you need to have valid API credentials:

- Client ID
- Client Secret
- Business UUID

Additionally, you need to tell which API channel you're using:

```
use Payever\Sdk\Core\ClientConfiguration;
use Payever\Sdk\Core\Enum\ChannelSet;

$clientId = 'your-oauth2-client-id';
$clientSecret = 'your-oauth2-client-secret';
$businessUuid = '88888888-4444-4444-4444-121212121212';

$clientConfiguration = new ClientConfiguration();

$clientConfiguration
    ->setClientId($clientId)
    ->setClientSecret($clientSecret)
    ->setBusinessUuid($businessUuid)
    ->setChannelSet(ChannelSet::CHANNEL_MAGENTO)
    ->setApiMode(ClientConfiguration::API_MODE_LIVE)
;
```

NOTE: All examples below assume you have [`ClientConfiguration`](lib/Payever/Core/ClientConfiguration.php) instantiated inside `$clientConfiguration` variable.

##### Logging

[](#logging)

You can setup logging of all API interactions by providing [PSR-3](https://www.php-fig.org/psr/psr-3/) compatible logger instance.

In case if you don't have PSR-3 compatible logger at hand - this SKD contains simple file logger:

```
use Psr\Log\LogLevel;
use Payever\Sdk\Core\Logger\FileLogger;

$logger = new FileLogger(__DIR__.'/payever.log', LogLevel::INFO);
$clientConfiguration->setLogger($logger);
```

License
-------

[](#license)

Please see the [license file](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~71 days

Recently: every ~181 days

Total

16

Last Release

70d ago

Major Versions

1.2.1 → 2.0.02024-03-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/366daacbf8d63b9865ec0c754767c79e1f2ccd8eb98dbe0d8371120d1bc9da4c?d=identicon)[payeverdev](/maintainers/payeverdev)

---

Top Contributors

[![payeverdev](https://avatars.githubusercontent.com/u/22471576?v=4)](https://github.com/payeverdev "payeverdev (18 commits)")[![gnusmus](https://avatars.githubusercontent.com/u/7521031?v=4)](https://github.com/gnusmus "gnusmus (2 commits)")

---

Tags

paymentse-commercepayever

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/payever-core-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/payever-core-sdk-php/health.svg)](https://phpackages.com/packages/payever-core-sdk-php)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[amsgames/laravel-shop

Package set to provide shop or e-commerce functionality (such as CART, ORDERS, TRANSACTIONS and ITEMS) to Laravel for customizable builds.

4845.9k](/packages/amsgames-laravel-shop)[enupal/stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x

3416.5k1](/packages/enupal-stripe)

PHPackages © 2026

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