PHPackages                             margules/bplib - 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. margules/bplib

ActiveLibrary

margules/bplib
==============

Sample Laravel Integration of BluePay API

18421[1 issues](https://github.com/ericmargules/bluepay-laravel/issues)PHP

Since Feb 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ericmargules/bluepay-laravel)[ Packagist](https://packagist.org/packages/margules/bplib)[ RSS](/packages/margules-bplib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bluepay Package for Laravel 5.6.x
=================================

[](#bluepay-package-for-laravel-56x)

1. Require BluePay package via composer.
----------------------------------------

[](#1-require-bluepay-package-via-composer)

```
composer require margules/bplib

```

2. Copy your BluePay credentials to .env file
---------------------------------------------

[](#2-copy-your-bluepay-credentials-to-env-file)

```
BP_ACCOUNT_ID="Merchant's Account ID Here"
BP_SECRET_KEY="Merchant's Secret Key Here"
BP_MODE="TEST"

```

3. Add Service Provider and Facade to config/app.php.
-----------------------------------------------------

[](#3-add-service-provider-and-facade-to-configappphp)

```
"Margules\bplib\BluePayServiceProvider::class," to "providers" array
"'BluePay' => Margules\bplib\Facades\BluePay::class," to "aliases" array

```

4. Test transaction using sample file
-------------------------------------

[](#4-test-transaction-using-sample-file)

```
Ex. 'require_once(base_path() . '/vendor/margules/bplib/src/Samples/Transactions/Charge_Customer_CC.php');'

```

5. Include namespace to run a transaction
-----------------------------------------

[](#5-include-namespace-to-run-a-transaction)

```
Place 'use Margules\bplib\BluePay;' at the top of files you wish to run transactions.

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/83a04750740b5aa9c24727a3726b292106de0d9282f4f953ba5efd96b0e4debf?d=identicon)[ericmargules](/maintainers/ericmargules)

---

Top Contributors

[![ericmargules](https://avatars.githubusercontent.com/u/17172032?v=4)](https://github.com/ericmargules "ericmargules (3 commits)")

### Embed Badge

![Health badge](/badges/margules-bplib/health.svg)

```
[![Health](https://phpackages.com/badges/margules-bplib/health.svg)](https://phpackages.com/packages/margules-bplib)
```

PHPackages © 2026

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