PHPackages                             midnite81/gocardless - 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. midnite81/gocardless

ActiveLibrary

midnite81/gocardless
====================

A Laravel 5 Intergration for GoCardless

1121PHP

Since Oct 1Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

A Laravel 5 integration for GoCardless [![Latest Stable Version](https://camo.githubusercontent.com/e8fdb63f2befec88641c9f38ce9773bea478caadfc76ff8d41ea9d8fc6befe6b/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f676f636172646c6573732f76657273696f6e)](https://packagist.org/packages/midnite81/gocardless) [![Total Downloads](https://camo.githubusercontent.com/5cfb5ebc676bc8293d30300ac9d32885016e67b941fe7c10c0a8efc88be47fb5/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f676f636172646c6573732f646f776e6c6f616473)](https://packagist.org/packages/midnite81/gocardless) [![Latest Unstable Version](https://camo.githubusercontent.com/06dd6bc3f2d18944ed211153aad56741419ad10b185750db02bcc404970f05bc/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f676f636172646c6573732f762f756e737461626c65)](https://packagist.org/packages/midnite81/gocardless) [![License](https://camo.githubusercontent.com/70d202124577a3c128b77029dc8d107e10c6da1b3fe05915db5eaaf668cb53dc/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f676f636172646c6573732f6c6963656e73652e737667)](https://packagist.org/packages/midnite81/gocardless) [![Build](https://camo.githubusercontent.com/97ab919c2a76f4e52b78506767a7b60cc85ba512363d21eef00688e62fe1822c/68747470733a2f2f7472617669732d63692e6f72672f6d69646e69746538312f676f636172646c6573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/midnite81/gocardless) [![Coverage Status](https://camo.githubusercontent.com/6a5f427c0ff26836e8032002fb50ec5d856e3c0e186c566bcacde51446225a01/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d69646e69746538312f676f636172646c6573732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/midnite81/gocardless?branch=master)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#a-laravel-5-integration-for-gocardless---------)

This package is a laravel 5 wrapper for the [GoCardless API](https://github.com/gocardless/gocardless-pro-php). This package is in **PreRelease** and currently relies on dev-master. When ready for release, it will be tagged correctly.

Installation
============

[](#installation)

This package requires PHP 5.6+, and comes with a Laravel 5 Service Provider and Facade for Laravel integration. Please note, you do not need to have laravel installed to use this package.

To install through composer include the package in your `composer.json`.

```
"midnite81/gocardless": "dev-master"

```

Run `composer install` or `composer update` to download the dependencies or you can run `composer require midnite81/gocardless`.

Laravel 5 Integration
---------------------

[](#laravel-5-integration)

To use the package with Laravel 5 add the GoCardless Service Provider to the list of Service Providers in `app/config/app.php`.

```
'providers' => [
    ...
    Midnite81\GoCardless\GoCardlessServiceProvider::class
    ...
];

```

Add the `GoCardless` facade to your aliases array.

```
'aliases' => [

  'GoCardless' => Midnite81\GoCardless\Facades\GoCardless::class,

];

```

Publish the required files
--------------------------

[](#publish-the-required-files)

Publish the config and migration files using `php artisan vendor:publish --provider="Midnite81\GoCardless\GoCardlessServiceProvider"`

Environmental Variables
-----------------------

[](#environmental-variables)

Once you have published the files, you will need to update your `.env` to include the following env keys.

```
GOCARDLESS_ENVIRONMENT=
GOCARDLESS_API_KEY_PRODUCTION=
GOCARDLESS_API_KEY_SANDBOX=
GOCARDLESS_PUBLISH_MIGRATIONS=

```

Check the config
----------------

[](#check-the-config)

You should take a look at the `config/gocardless.php` configuration file as there are a number of settings you should be aware of. For example, you can prefix migrations with a custom prefix of your own. Please update these if necessary.

Accessing the GoCardless Client
-------------------------------

[](#accessing-the-gocardless-client)

To access GoCardless you can either use the Facade or the GoCardless Client instance is bound to the IOC container and you can then dependency inject it via its contract.

```
GoCardless::getClient();

public function __construct(Midnite81\GoCardless\Contracts\Services\Client $client)
{
    $this->client = $client;
}

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

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/edf6a9952472e4cdd5a0e12ad3b9bd15b801c08a5cd56f33f6c8495aef4968ed?d=identicon)[midnite81](/maintainers/midnite81)

---

Top Contributors

[![midnite81](https://avatars.githubusercontent.com/u/254850?v=4)](https://github.com/midnite81 "midnite81 (36 commits)")

### Embed Badge

![Health badge](/badges/midnite81-gocardless/health.svg)

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

PHPackages © 2026

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