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. [API Development](/categories/api)
4. /
5. chistel/bluesnap\_php

ActiveLibrary[API Development](/categories/api)

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 3w ago

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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2123d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46791424?v=4)[Chistel](/maintainers/chistel)[@chistel](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M982](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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