PHPackages                             ventepos/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. [Payment Processing](/categories/payments)
4. /
5. ventepos/bluesnap-php

ActiveLibrary[Payment Processing](/categories/payments)

ventepos/bluesnap-php
=====================

A PHP Library for the Bluesnap api

v0.3.5(7y ago)312.2k↓35.3%7[3 PRs](https://github.com/ventepos/bluesnap-php/pulls)MITPHPPHP &gt;=5.5

Since Jun 21Pushed 6y agoCompare

[ Source](https://github.com/ventepos/bluesnap-php)[ Packagist](https://packagist.org/packages/ventepos/bluesnap-php)[ Docs](https://github.com/ventepos/bluesnap-php)[ RSS](/packages/ventepos-bluesnap-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (17)Used By (0)

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

[](#bluesnap-php-library)

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 tdanielcox/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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

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

Every ~33 days

Recently: every ~72 days

Total

15

Last Release

2792d ago

### Community

Maintainers

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

---

Top Contributors

[![tdanielcox](https://avatars.githubusercontent.com/u/3145392?v=4)](https://github.com/tdanielcox "tdanielcox (32 commits)")[![pmccarren](https://avatars.githubusercontent.com/u/4959702?v=4)](https://github.com/pmccarren "pmccarren (17 commits)")

---

Tags

laravelbluesnap

### Embed Badge

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

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

###  Alternatives

[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)[tsaiyihua/laravel-linepay

linepay library for laravel

102.9k](/packages/tsaiyihua-laravel-linepay)

PHPackages © 2026

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