PHPackages                             perfectpanel/extlib-bluesnap-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. [API Development](/categories/api)
4. /
5. perfectpanel/extlib-bluesnap-php

ActiveLibrary[API Development](/categories/api)

perfectpanel/extlib-bluesnap-php
================================

A PHP Library for the Bluesnap api

0550PHP

Since Apr 24Pushed 1y agoCompare

[ Source](https://github.com/perfectpanel/extlib-bluesnap-php)[ Packagist](https://packagist.org/packages/perfectpanel/extlib-bluesnap-php)[ RSS](/packages/perfectpanel-extlib-bluesnap-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Bluesnap PHP Library
--------------------

[](#bluesnap-php-library)

**NOTE FROM AUTHOR** this library is not production ready as my company decided against using bluesnap shortly after starting this project. Please feel free to fork it and make it fit your needs, all endpoints are working as of June 2017, however the library is missing several features that bluesnap offers. Development and maintence on this project has been discontinued.

**NOTE FROM PERFECTPANEL** just updated requirements of guzzlehttp/guzzle up to version ^7.5. Original package: `tdanielcox/bluesnap-php`.

---

This (unofficial) library standardizes and simplifies working with the bluesnap api.

All the standard api documentation is applicable to this library.

View the bluesnap documentation here:

This library currently supports:

- CardTransactions
- VaultedShoppers
- Vendors
- Subscriptions
- Plans (Subscriptions)
- Refunds
- Reports

### Installation

[](#installation)

Install this package with composer

```
composer require perfectpanel/extlib-bluesnap-php
```

### Usage

[](#usage)

Initialize the library in your class constructor

```
public function __construct()
{
    $environment = 'sandbox'; // or 'production'
    \tdanielcox\Bluesnap\Bluesnap::init($environment, 'YOUR_API_KEY', 'YOUR_API_PASSWORD');
}
```

Create a New Transaction

```
public function createTransaction()
{
    $response = \tdanielcox\Bluesnap\CardTransaction::create([
        'creditCard' => [
            'cardNumber' => '4263982640269299',
            'expirationMonth' => '02',
            'expirationYear' => '2018',
            'securityCode' => '837'
        ],
        'amount' => 10.00,
        'currency' => 'USD',
        'recurringTransaction' => 'ECOMMERCE',
        'cardTransactionType' => 'AUTH_CAPTURE',
    ]);

    if ($response->failed())
    {
        $error = $response->data;

        // handle error
    }

    $transaction = $response->data;

    return $transaction;
}
```

#### See [examples](https://github.com/tdanielcox/bluesnap-php/tree/master/examples) for further details on using the library

[](#see-examples-for-further-details-on-using-the-library)

License
-------

[](#license)

This package is licensed under the [MIT License](https://github.com/tdanielcox/bluesnap-php/blob/master/LICENSE)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.9% 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/c70f1c5a9eadef73fdce57d8929188c6f0df681dcf4a73bd4af5a208d8be511c?d=identicon)[Gorchel567](/maintainers/Gorchel567)

---

Top Contributors

[![tdanielcox](https://avatars.githubusercontent.com/u/3145392?v=4)](https://github.com/tdanielcox "tdanielcox (34 commits)")[![wizard-pp](https://avatars.githubusercontent.com/u/126666204?v=4)](https://github.com/wizard-pp "wizard-pp (2 commits)")[![Gorchel567](https://avatars.githubusercontent.com/u/75777865?v=4)](https://github.com/Gorchel567 "Gorchel567 (1 commits)")

### Embed Badge

![Health badge](/badges/perfectpanel-extlib-bluesnap-php/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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