PHPackages                             chistel/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. chistel/bluesnap\_php

ActiveLibrary

chistel/bluesnap\_php
=====================

A PHP Library for the Bluesnap api

1.0.0(5y ago)092MITPHPPHP ^7.2.5

Since Sep 9Pushed 5y ago1 watchersCompare

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

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

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

[](#bluesnap-php-library)

This library is a fork from the original author [tdanielcox](https://github.com/tdanielcox/bluesnap-php)

At the moment, library currently supports:

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

### Installation

[](#installation)

Install this package with composer

```
composer require chistel/bluesnap_php
```

### Usage

[](#usage)

Initialize the library in your class constructor

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

Create a New Transaction

```
public function createTransaction()
{
    $response = \Chistel\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
    }

    return $response->data;
}
```

#### 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

2069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f4f9845cd645756cae3ab0489554ba1494d5f69f85e94e0056fded0403eae9e?d=identicon)[chistel](/maintainers/chistel)

---

Top Contributors

[![chistel](https://avatars.githubusercontent.com/u/46791424?v=4)](https://github.com/chistel "chistel (7 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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