PHPackages                             bvharen/mollie-laravel-7-plus-clone - 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. bvharen/mollie-laravel-7-plus-clone

ActiveLibrary[API Development](/categories/api)

bvharen/mollie-laravel-7-plus-clone
===================================

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

v2.10.0(5y ago)07BSD-2-ClausePHPPHP ^7.1.3|^7.2

Since May 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bvharen/mollie-laravel-7-plus-clone)[ Packagist](https://packagist.org/packages/bvharen/mollie-laravel-7-plus-clone)[ Docs](https://github.com/mollie/laravel-mollie)[ RSS](/packages/bvharen-mollie-laravel-7-plus-clone/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (6)Versions (28)Used By (0)

 [![](https://camo.githubusercontent.com/984067deebafa67cbeb9bb7cb0161a834dc3e39ab0eaad68039ad0cf334e1b23/68747470733a2f2f696e666f2e6d6f6c6c69652e636f6d2f68756266732f6769746875622f6c61726176656c2f6c6f676f2e706e67)](https://camo.githubusercontent.com/984067deebafa67cbeb9bb7cb0161a834dc3e39ab0eaad68039ad0cf334e1b23/68747470733a2f2f696e666f2e6d6f6c6c69652e636f6d2f68756266732f6769746875622f6c61726176656c2f6c6f676f2e706e67)

Mollie for Laravel
==================

[](#mollie-for-laravel)

[![](https://camo.githubusercontent.com/4ae6d446849c44e7ff1661965e7617a2241fc08ce79273c0c051249c467e36f2/68747470733a2f2f696e666f2e6d6f6c6c69652e636f6d2f68756266732f6769746875622f6c61726176656c2f656469746f722e706e67)](https://camo.githubusercontent.com/4ae6d446849c44e7ff1661965e7617a2241fc08ce79273c0c051249c467e36f2/68747470733a2f2f696e666f2e6d6f6c6c69652e636f6d2f68756266732f6769746875622f6c61726176656c2f656469746f722e706e67)

Laravel-Mollie incorporates the [Mollie API](https://www.mollie.com/en/docs/overview) and [Mollie Connect](https://www.mollie.com/en/connect) into your [Laravel](https://laravel.com/) or [Lumen](https://lumen.laravel.com/) project.

Accepting [iDEAL](https://www.mollie.com/en/payments/ideal/), [Apple Pay](https://www.mollie.com/en/payments/apple-pay), [Bancontact/Mister Cash](https://www.mollie.com/en/payments/bancontact/), [SOFORT Banking](https://www.mollie.com/en/payments/sofort/), [Creditcard](https://www.mollie.com/en/payments/credit-card/), [SEPA Bank transfer](https://www.mollie.com/en/payments/bank-transfer/), [SEPA Direct debit](https://www.mollie.com/en/payments/direct-debit/), [PayPal](https://www.mollie.com/en/payments/paypal/), [Belfius Direct Net](https://www.mollie.com/en/payments/belfius/), [KBC/CBC](https://www.mollie.com/en/payments/kbc-cbc/), [paysafecard](https://www.mollie.com/en/payments/paysafecard/), [ING Home'Pay](https://www.mollie.com/en/payments/ing-homepay/), [Giftcards](https://www.mollie.com/en/payments/gift-cards/), [Giropay](https://www.mollie.com/en/payments/giropay/), [EPS](https://www.mollie.com/en/payments/eps/) and [Przelewy24](https://www.mollie.com/en/payments/przelewy24/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.

**Looking for a complete recurring billing solution?** Take a look at [laravel/cashier-mollie](https://www.github.com/laravel/cashier-mollie) instead.

[![Build Status](https://camo.githubusercontent.com/4ecb61c23fb50fef4ef3115e9c0e830c1928b29d3b25a3ed08466fca39b3cde3/68747470733a2f2f7472617669732d63692e6f72672f6d6f6c6c69652f6c61726176656c2d6d6f6c6c69652e706e67)](https://travis-ci.org/mollie/laravel-mollie)[![Latest Stable Version](https://camo.githubusercontent.com/d26b6a088e07ecefedbbfbca42ad3b44dca2c37b231d8054e2afb1bf30df8eeb/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6c6c69652f6c61726176656c2d6d6f6c6c69652f762f737461626c65)](https://packagist.org/packages/mollie/laravel-mollie)[![Total Downloads](https://camo.githubusercontent.com/79928996b867c3e052acf0034561697cd6619ecb86b09a5b2033dbee33160235/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6c6c69652f6c61726176656c2d6d6f6c6c69652f646f776e6c6f616473)](https://packagist.org/packages/mollie/laravel-mollie)

Requirements
------------

[](#requirements)

- Get yourself a free [Mollie account](https://www.mollie.com/signup). No sign up costs.
- Now you're ready to use the Mollie API client in test mode.
- Follow [a few steps](https://www.mollie.com/dashboard/?modal=onboarding) to enable payment methods in live mode, and let us handle the rest.
- Up-to-date OpenSSL (or other SSL/TLS toolkit)
- PHP &gt;= 7.0
- [Laravel](https://www.laravel.com) (or [Lumen](https://lumen.laravel.com)) &gt;= 5.5
- [Laravel Socialite](https://github.com/laravel/socialite) &gt;= 3.0 (if you intend on using [Mollie Connect](https://docs.mollie.com/oauth/overview))

Upgrading from v1.x?
--------------------

[](#upgrading-from-v1x)

To support the enhanced Mollie API, some breaking changes were introduced. Make sure to follow the instructions in the [package migration guide](docs/migration_instructions_v1_to_v2.md).

Not ready to upgrade? The Laravel-Mollie client v1 will remain supported for now.

Fresh install? Continue with the installation guide below.

Installation
------------

[](#installation)

Add Laravel-Mollie to your composer file via the `composer require` command:

```
$ composer require mollie/laravel-mollie:^2.0
```

Or add it to `composer.json` manually:

```
"require": {
    "mollie/laravel-mollie": "^2.0"
}
```

Laravel-Mollie's service providers will be automatically registered using Laravel's auto-discovery feature.

Note: For Lumen you have to add the Mollie facade and service provider manually to: `bootstrap/app.php` :

```
$app->withFacades(true, ['Mollie\Laravel\Facades\Mollie' => 'Mollie']);

$app->register(Mollie\Laravel\MollieServiceProvider::class);
```

Configuration
-------------

[](#configuration)

You'll only need to add the `MOLLIE_KEY` variable to your `.env` file.

```
MOLLIE_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

Example usage
-------------

[](#example-usage)

Here you can see an example of just how simple this package is to use.

### A payment using the Mollie API

[](#a-payment-using-the-mollie-api)

```
use Mollie\Laravel\Facades\Mollie;

public function preparePayment()
{
    $payment = Mollie::api()->payments->create([
        "amount" => [
            "currency" => "EUR",
            "value" => "10.00" // You must send the correct number of decimals, thus we enforce the use of strings
        ],
        "description" => "Order #12345",
        "redirectUrl" => route('order.success'),
        "webhookUrl" => route('webhooks.mollie'),
        "metadata" => [
            "order_id" => "12345",
        ],
    ]);

    $payment = Mollie::api()->payments->get($payment->id);

    // redirect customer to Mollie checkout page
    return redirect($payment->getCheckoutUrl(), 303);
}

/**
 * After the customer has completed the transaction,
 * you can fetch, check and process the payment.
 * (See the webhook docs for more information.)
 */
if ($payment->isPaid())
{
    echo 'Payment received.';
    // Do your thing ...
}
```

### Global helper method

[](#global-helper-method)

For your convencience we've added the global `mollie()` helper function. It's an easy shortcut to the `Mollie::api()` facade accessor.

```
// Using facade accessor
$payment = \Mollie\Laravel\Facades\Mollie::api()->payments->get($payment_id);

// Using global helper function
$payment = mollie()->payments->get($payment_id);
```

Other examples
--------------

[](#other-examples)

- [Process realtime status updates with a webhook](docs/webhook.md)
- [Recurring payments and direct charges](docs/recurring_and_direct_charge.md)
- [Using Mollie Connect with Laravel Socialite (OAuth)](docs/mollie_connect.md) (Leverage the Mollie platform for advanced payment use cases)

Roadmap
-------

[](#roadmap)

You can find the latest development roadmap for this package [here](docs/roadmap.md). Feel free to open an [issue](https://github.com/mollie/laravel-mollie/issues) if you have a feature request.

Want to help us make our Laravel module even better?
----------------------------------------------------

[](#want-to-help-us-make-our-laravel-module-even-better)

Want to help us make our Laravel module even better? We take [pull requests](https://github.com/mollie/laravel-mollie/pulls?utf8=%E2%9C%93&q=is%3Apr), sure. But how would you like to contribute to a [technology oriented organization](https://www.mollie.com/nl/blog/post/werken-bij-mollie-als-developer/)? Mollie is hiring developers and system engineers. [Check out our vacancies](https://www.mollie.com/nl/jobs) or [get in touch](mailto:personeel@mollie.com).

License
-------

[](#license)

[BSD (Berkeley Software Distribution) License](http://www.opensource.org/licenses/bsd-license.php). Copyright (c) 2016, Mollie B.V.

Support
-------

[](#support)

Contact: [www.mollie.com](https://www.mollie.com) —  — +31 20-612 88 55

- [More information about Mollie Connect](https://www.mollie.com/en/connect)
- [Documentation for the Mollie API](https://www.mollie.com/en/docs/overview)
- [Documentation for Mollie OAuth](https://www.mollie.com/en/docs/oauth/overview)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 67.9% 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 ~56 days

Recently: every ~64 days

Total

27

Last Release

2188d ago

Major Versions

v1.5.1 → v2.0.0-beta12018-07-02

PHP version history (3 changes)1.2.0PHP ^5.5.9 || ^7.0

v2.0.0-beta1PHP &gt;=7.0.0

v2.7.1PHP ^7.1.3|^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16267380?v=4)[bvharen](/maintainers/bvharen)[@bvharen](https://github.com/bvharen)

---

Top Contributors

[![sandervanhooft](https://avatars.githubusercontent.com/u/7265703?v=4)](https://github.com/sandervanhooft "sandervanhooft (95 commits)")[![FaaPz](https://avatars.githubusercontent.com/u/1536742?v=4)](https://github.com/FaaPz "FaaPz (12 commits)")[![ricardodevries](https://avatars.githubusercontent.com/u/78354174?v=4)](https://github.com/ricardodevries "ricardodevries (2 commits)")[![robindirksen1](https://avatars.githubusercontent.com/u/22446895?v=4)](https://github.com/robindirksen1 "robindirksen1 (2 commits)")[![bvharen](https://avatars.githubusercontent.com/u/16267380?v=4)](https://github.com/bvharen "bvharen (2 commits)")[![Jubeki](https://avatars.githubusercontent.com/u/15707543?v=4)](https://github.com/Jubeki "Jubeki (2 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (2 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (2 commits)")[![ndijkstra](https://avatars.githubusercontent.com/u/3372841?v=4)](https://github.com/ndijkstra "ndijkstra (2 commits)")[![joshuadegier](https://avatars.githubusercontent.com/u/2580917?v=4)](https://github.com/joshuadegier "joshuadegier (2 commits)")[![ptondereau](https://avatars.githubusercontent.com/u/4287777?v=4)](https://github.com/ptondereau "ptondereau (2 commits)")[![vdbelt](https://avatars.githubusercontent.com/u/11087503?v=4)](https://github.com/vdbelt "vdbelt (1 commits)")[![vernondegoede](https://avatars.githubusercontent.com/u/2484832?v=4)](https://github.com/vernondegoede "vernondegoede (1 commits)")[![willemstuursma](https://avatars.githubusercontent.com/u/701299?v=4)](https://github.com/willemstuursma "willemstuursma (1 commits)")[![adriaanmol](https://avatars.githubusercontent.com/u/2109817?v=4)](https://github.com/adriaanmol "adriaanmol (1 commits)")[![xewl](https://avatars.githubusercontent.com/u/245041?v=4)](https://github.com/xewl "xewl (1 commits)")[![basvandorst](https://avatars.githubusercontent.com/u/1196963?v=4)](https://github.com/basvandorst "basvandorst (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")[![fatelgit](https://avatars.githubusercontent.com/u/13215733?v=4)](https://github.com/fatelgit "fatelgit (1 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")

---

Tags

apilaravellumenservicesocialiterecurringpaymentpaymentsgatewaypaypalidealmolliepaysafecardsepasubscriptionscreditcardsofortdirect debitmistercashbancontactsofortbankingchargesbanktransferbelfiusbelfius direct netrefundsPrzelewy24podiumcadeaukaartApple Pay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bvharen-mollie-laravel-7-plus-clone/health.svg)

```
[![Health](https://phpackages.com/badges/bvharen-mollie-laravel-7-plus-clone/health.svg)](https://phpackages.com/packages/bvharen-mollie-laravel-7-plus-clone)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

59914.4M62](/packages/mollie-mollie-api-php)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[mollie/magento

iDEAL, Creditcard, Bancontact/Mister Cash, SOFORT, Bank transfer, Bitcoin, PayPal &amp; paysafecard for Magento https://www.mollie.com/

397.9k](/packages/mollie-magento)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[mage2pro/stripe

Stripe integration with Magento 2

605.3k](/packages/mage2pro-stripe)

PHPackages © 2026

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