PHPackages                             vamajordy/php-bluesnap-sdk - 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. vamajordy/php-bluesnap-sdk

ActiveLibrary[API Development](/categories/api)

vamajordy/php-bluesnap-sdk
==========================

A PHP SDK for the BlueSnap API

v0.3.8(3y ago)0821[1 PRs](https://github.com/vamajordy/php-bluesnap-sdk/pulls)MITPHPPHP &gt;=5.5

Since Jun 21Pushed 3y agoCompare

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

READMEChangelog (3)Dependencies (1)Versions (24)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
- Generating a Hosted Payment Fields token

### Installation

[](#installation)

Install this package with composer

```
composer require vamajordy/php-bluesnap-sdk
```

### Usage

[](#usage)

Initialize the library in your class constructor

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

Create a New Hosted Payment Fields Token

```
public function getHostedPaymentFieldsToken() {
  $data = \Bluesnap\HostedPaymentFieldsToken::create();
  return $data['hosted_payment_fields_token'];
}
```

Create a New Transaction

```
public function createTransaction()
{
    $response = \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/shabananavas/php-bluesnap-sdk/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/shabananavas/php-bluesnap-sdk/blob/master/LICENSE)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.6% 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 ~109 days

Recently: every ~350 days

Total

18

Last Release

1390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/635fa0c467d6c98a2d8145378d4f5cb98c1ee3a22fa25e7529197400630b721c?d=identicon)[Yellow Images](/maintainers/Yellow%20Images)

---

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)")[![shabananavas](https://avatars.githubusercontent.com/u/11439056?v=4)](https://github.com/shabananavas "shabananavas (8 commits)")[![safalliajoseph](https://avatars.githubusercontent.com/u/17721140?v=4)](https://github.com/safalliajoseph "safalliajoseph (2 commits)")[![vamajordy](https://avatars.githubusercontent.com/u/62444364?v=4)](https://github.com/vamajordy "vamajordy (2 commits)")[![krystalcode](https://avatars.githubusercontent.com/u/301364?v=4)](https://github.com/krystalcode "krystalcode (1 commits)")

---

Tags

laravelbluesnap

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[laravel-freelancer-nl/laravel-index-now

Alert search engines of content changes.

5212.1k](/packages/laravel-freelancer-nl-laravel-index-now)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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