PHPackages                             rebootonline/barclaycard - 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. rebootonline/barclaycard

ActiveProject[Payment Processing](/categories/payments)

rebootonline/barclaycard
========================

php class to integrate and handle barclaycard direct link

1664PHP

Since Oct 15Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Rebootonline Barclaycard API handler
====================================

[](#rebootonline-barclaycard-api-handler)

A full-featured Barclaycard Direct link payment API class for PHP

Class Features
--------------

[](#class-features)

- PSR-4 autoloading compliant structure
- Unit-Testing with PHPUnit
- Easy to use to any framework or even a plain php file
- Open Source
- Allows processing of optional Fields
- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings
- Compatible with PHP 5.5 and later
- Namespaced to prevent name clashes
- Simple and minimal

Installation &amp; loading
--------------------------

[](#installation--loading)

You can clone the package directly in to your application and run `bash  composer dump-autoload    `

```
git clone https://github.com/rebootonline/Reboot-barclaycard.git

composer dump-autoload
```

Use composer to install package in to your application

```
composer require rebootonline/barclaycard
```

A Simple Example
----------------

[](#a-simple-example)

```
use Reboot\Barclaycard;

	/*

	Step 1 : Instantiate/create your object

	*/

	$payment = new Barclaycard($pspid,$user_name, $password, $pw, $payemntUrl);

	/*

	Step 2 : Call the amount, card and orderId methods chaining them together in order
	Step 3 : Call the customer method for additional parameters
	Step 4 : Call pay method and your done

	*/

$process=$payment->amount($amount, $currency)
		->card($expiry_date, $card_number, $card_name, $cvc)
		->orderId('abc123')
		->customer($email, $phone, $address_1,  $town, $postcode)
		->pay();
	/*

	To retrieve results call the response method

	*/
	echo $process->response();

	/*

	Method 2: you can just pass parameters to pay method after  instantiate class
	then call response method to retrieve results.

	*/
$process=$payment->pay([
	'amount'=>'123',
	'currency'=>'gbp',
	'expiry_date'=>'10:10',
	'card_number'=>'698655445',
	'card_name'=>'bob',
	'cvc'=>'321',
	'order_id'=>'abc123',
	'email'=>'ali@rebootonoline.com',
	'phone'=>'079856422',
	'address'=>'123 st road',
	'town'=>'london',
	'postcode'=>'e23 6sd'

]);
echo $process->response();
```

License
-------

[](#license)

This class open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/32509310?v=4)[Reboot Online Marketing Ltd](/maintainers/rebootonline)[@rebootonline](https://github.com/rebootonline)

---

Top Contributors

[![ali-tog](https://avatars.githubusercontent.com/u/81696802?v=4)](https://github.com/ali-tog "ali-tog (2 commits)")

### Embed Badge

![Health badge](/badges/rebootonline-barclaycard/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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