PHPackages                             swipe/swipe-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. swipe/swipe-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

swipe/swipe-php
===============

Swipe PHP Library

08PHP

Since Jul 2Pushed 4y ago2 watchersCompare

[ Source](https://github.com/swipe-engineer/swipe-php)[ Packagist](https://packagist.org/packages/swipe/swipe-php)[ RSS](/packages/swipe-swipe-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Swipe PHP
=========

[](#swipe-php)

It is simple wrapper class written in php to ease use of [Swipe](https://swipego.io)

Directory
---------

[](#directory)

- [Installation](#installation)
- [Usages](#usages)

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

[](#installation)

### Composer

[](#composer)

```
composer require swipe/swipe-php

```

Alternatively, you can specify as a dependency in your project's existing composer.json file

```
{
   "require": {
      "swipe/swipe-php": "dev-main",
   }
}

```

Usages
------

[](#usages)

After installing, you need to require Composer's autoloader and add your code.

Setup config

```
use Swipe\Swipe;

$swipe = new Swipe(API_KEY);

```

Or leave `Swipe()` blank

```
$swipe = new Swipe();

// SET API KEY
$swipe->setApiKey(API_KEY);

// SET TEST MODE
$swipe->setTestMode(true);

```

Payment Link
------------

[](#payment-link)

### Create Payment Link

[](#create-payment-link)

```
$swipe->paymentLink->create([
    'amount'   => '10',
    'currency' => 'MYR',
    'email'    => 'team@swipego.io',
    'title'    => 'create payment link',
]);

```

### Get Payment Link

[](#get-payment-link)

```
$swipe->paymentLink->get(PAYMENT_LINK_ID);

```

### Update Payment Link

[](#update-payment-link)

```
$swipe->paymentLink->update([
    'amount'   => '20',
    'currency' => 'MYR',
    'email'    => 'team@swipego.io',
    'title'    => 'create payment link',
]);

```

### Delete Payment Link

[](#delete-payment-link)

```
$swipe->paymentLink->delete(PAYMENT_LINK_ID);

```

Source
------

[](#source)

[Swipe Docs](https://dev-api.swipego.io/docs)

License
-------

[](#license)

Licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 72.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e17fc811aaae8b41b34db654206298c6a0a26512ad2bf78eb16541602e4a8776?d=identicon)[swipe-team](/maintainers/swipe-team)

---

Top Contributors

[![anas-swipego](https://avatars.githubusercontent.com/u/180696326?v=4)](https://github.com/anas-swipego "anas-swipego (8 commits)")[![anas-abdrahman](https://avatars.githubusercontent.com/u/20499935?v=4)](https://github.com/anas-abdrahman "anas-abdrahman (3 commits)")

### Embed Badge

![Health badge](/badges/swipe-swipe-php/health.svg)

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

###  Alternatives

[zservices/query

Pacote para consultas em serviços do governo.

141.1k](/packages/zservices-query)

PHPackages © 2026

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