PHPackages                             edge-payment-technologies/edge-php-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. edge-payment-technologies/edge-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

edge-payment-technologies/edge-php-sdk
======================================

v1(2y ago)03[2 PRs](https://github.com/Edge-Payment-Technologies/edge-php-sdk/pulls)PHPPHP ^7.3||^8.0

Since Jan 24Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Edge-Payment-Technologies/edge-php-sdk)[ Packagist](https://packagist.org/packages/edge-payment-technologies/edge-php-sdk)[ RSS](/packages/edge-payment-technologies-edge-php-sdk/feed)WikiDiscussions main Synced 2d ago

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

Edge PHP SDK
============

[](#edge-php-sdk)

This is a lightweight PHP SDK for the Edge payment gateway. It uses Guzzle for making API requests and returns the responses as an array/object by default. The sdk communicates with the `https://api.tryedge.com` endpoint.

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

[](#installation)

To install the SDK, add the following to your composer.json file:

```
"require": {
    "edge-payment-technologies/edge-php-sdk": "^1.0"
}
```

Then run `composer install` to add the SDK to your project.

Usage
-----

[](#usage)

First, you need to set your API key. This can be done using the `setApiKey` method in the `Auth` class.

```
Edge\Auth::setApiKey('YOUR_API_KEY');
```

After setting the API key, you can use the `Client` class to make requests to the Edge API. The `Client` class has four methods: `create`, `get`, `update`, and `delete`. Each of these methods takes two parameters: the endpoint and an optional body.

Here are some examples:

```
$create = Edge\Client::create('payment_demands', [] /*body can be placed here*/);

$get = Edge\Client::get('payment_demands', [] /*body can be placed here*/);

$update = Edge\Client::update('payment_demands', [] /*body can be placed here*/);

$delete = Edge\Client::delete('payment_demands', [] /*body can be placed here*/);
```

By default, the response from these methods will be an object. If you want to get the response as an array, you can use the `toArray` method.

```
$response = Edge\Client::get('payment_demands');
$arrayResponse = $response->toArray();
```

Error Handling
--------------

[](#error-handling)

This sdk uses exceptions for error handling. If an error occurs during a request, an `Exception` will be thrown. You can catch these exceptions to handle errors in your application.

```
try {
    $response = Edge\Client::get('payment_demands');
} catch (Edge\Exception $e) {
    echo 'Error: ' . $e->getMessage();
}
```

Helpers
-------

[](#helpers)

The SDK also includes a `Helpers` class with useful methods. For example, you can use the `convertAlpha2ToAlpha3` method to convert a country code from ISO 3166-1 alpha-2 to ISO 3166-1 alpha-3.

```
$alpha3 = Edge\Helpers::convertAlpha2ToAlpha3('US');
```

Contributing
------------

[](#contributing)

Contributions are welcome. Please submit a pull request or create an issue if you have any improvements or find any bugs.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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

Unknown

Total

1

Last Release

892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5a4d64aaea0a0c7d1d26f2c8dfb249b8ee54576088b733a961f68f7eec2645f?d=identicon)[krainboltgreene](/maintainers/krainboltgreene)

---

Top Contributors

[![dvnkshl](https://avatars.githubusercontent.com/u/3625028?v=4)](https://github.com/dvnkshl "dvnkshl (5 commits)")[![krainboltgreene](https://avatars.githubusercontent.com/u/334809?v=4)](https://github.com/krainboltgreene "krainboltgreene (4 commits)")

### Embed Badge

![Health badge](/badges/edge-payment-technologies-edge-php-sdk/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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