PHPackages                             veem/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. [API Development](/categories/api)
4. /
5. veem/sdk

ActiveLibrary[API Development](/categories/api)

veem/sdk
========

Veem PHP SDK

1.0.0(6y ago)31425[1 issues](https://github.com/veeminc/veem-php-sdk/issues)[1 PRs](https://github.com/veeminc/veem-php-sdk/pulls)MITPHPPHP &gt;=7.1.0CI failing

Since Sep 26Pushed 5y ago4 watchersCompare

[ Source](https://github.com/veeminc/veem-php-sdk)[ Packagist](https://packagist.org/packages/veem/sdk)[ RSS](/packages/veem-sdk/feed)WikiDiscussions master Synced 2d ago

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

Veem-PHP-Sdk
============

[](#veem-php-sdk)

The Veem PHP SDK provides an interface to make it easier to call [Veem Global Payments APIs](https://developer.veem.com/reference).

Version information
-------------------

[](#version-information)

- Latest SDK Version: `1.0.0`
- Latest supported API Endpoint Version: `v1.1`

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

[](#documentation)

- [Veem Global Payments APIs](https://developer.veem.com/reference)
- [Developer Dashboard](https://developer.veem.com/page/dev-dashboard-sandbox)

System Requirements
-------------------

[](#system-requirements)

1. The SDK works on **PHP 7 and beyond**.
2. A [developer](https://developer.veem.com/page/dev-dashboard-sandbox) account
3. An [application with a customer account](https://developer.veem.com/page/dev-dashboard-sandbox)and the associated client id and secret (Authorization flow / Client Credentials flow)

First Use Instructions
----------------------

[](#first-use-instructions)

1. composer install with command: `composer require veem/sdk`
2. Start to Use Veem SDK classes in your PHP project

Testing the Code
----------------

[](#testing-the-code)

To test the code locally, follow the steps below:

1. cd to the project directory
2. Client can either integrate with Authorization flow or Client Credential Flow;
3. For Authorization flow, create a VeemContext object, fill in the `clientId`, `clientSecret`, `authorizationCode`, and `redirectUrl`(optional).
4. For Client Credentials flow, create a VeemContext object, fill in the `clientId`, and `clientSecret`.
5. To exercise all Veem Global Payment APIs, pass the VeemContext object as constructor argument to VeemClient and calling access token methods for scenario of step 3 or step 4.

Getting the OAuth Tokens
------------------------

[](#getting-the-oauth-tokens)

In order to get the access tokens from the Developer Portal;

**Sign In with Veem** - Sign into [developer Portal ](https://developer.veem.com/page/dev-dashboard-sandbox).

**Create an Application**- Create a new application by providing the `Name`, `OAuth2 Redirection URLs` and `Payment Status Webhooks`.

**Create a Customer**- Create a new customer by providing `Business Name`, `Country` and `Primary Email`

**Get Credentials**- Go the Application and select the `Customer` and copy the `Access Token`.

In order to get the `access token` programmatically, get the client id, client secrets (Optional redirect url for Authorization flow).

```
use Veem\VeemContext;
use Veem\clients\VeemClient;

$context = new VeemContext("Test-46ecbf0b", "34b20dcf-6e6c-4bd4-83c3-159d5b7c3c27");
$veem = new VeemClient($context, $loginFromClientCredentials = true);

// or

$veem = new VeemClient($context);
$veem->getTokenFromClientCredentials();

```

Invoice Client Example
----------------------

[](#invoice-client-example)

The following example is to send invoice using `Invoice Client`

```

use Veem\VeemContext;
use Veem\clients\VeemClient;

// define a VeemClient Context Manager and auto login.
$context = new VeemContext("Test-46ecbf0b", "34b20dcf-6e6c-4bd4-83c3-159d5b7c3c27");
$veem = new VeemClient($context, $loginFromClientCredentials = true);

// define an InvoiceRequest

$account = new Account();
$account->setType('Business')
        ->setEmail('devsupport+gbp@veem.com')
        ->setFirstName('Wei')
        ->setLastName('Chen')
        ->setBusinessName('GBP Veem Wei')
        ->setCountryCode('GB')
        ->setPhoneCountryCode('44')
        ->setPhone('03700100222');
$amount = new Amount($number = 50, $currency = 'GBP');
$invoiceRequest = new Invoice();
$invoiceRequest->setAmount($amount)->setPayer($account);

// create an invoice
$invoice = $veem->getInvoiceClient()->create($invoiceRequest);

```

**More Examples can be found under examples folder**

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

2469d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b3979e80f8302dbec9b09126ec12672b4344da69764797d04c8f86f5b8f1cb8?d=identicon)[VeemWei](/maintainers/VeemWei)

---

Tags

apisdkveemglobal payment processing

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

596.2M35](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)

PHPackages © 2026

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