PHPackages                             revlenuwe/gearer - 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. revlenuwe/gearer

ActiveLibrary[Payment Processing](/categories/payments)

revlenuwe/gearer
================

MyceliumGear gateway payment processing

1.1.2(5y ago)0111MITPHPPHP ^7.3|^8.0

Since Nov 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/revlenuwe/gearer)[ Packagist](https://packagist.org/packages/revlenuwe/gearer)[ RSS](/packages/revlenuwe-gearer/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

MyceliumGear gateway Laravel
============================

[](#myceliumgear-gateway-laravel)

[![GEAR](https://camo.githubusercontent.com/2bb1197df777b3b9725f84479150ff0d7dee0367fec07dca10f0bd47542b6597/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f325675483842444254425333774374436937464964672e706e67)](https://camo.githubusercontent.com/2bb1197df777b3b9725f84479150ff0d7dee0367fec07dca10f0bd47542b6597/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f325675483842444254425333774374436937464964672e706e67)

Implementation MyceliumGear gateway payment processing support for Laravel

For more information check [Mycelium Gear](https://gear.mycelium.com/)

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

[](#installation)

Via Composer

```
$ composer require revlenuwe/gearer
```

Register the service provider and facade if you work with Laravel 5.4:

```
// config/app.php

'providers' => [
    ...
    Revlenuwe\Gearer\GearerServiceProvider::class,
];

'aliases' => [
    ...
    Revlenuwe\Gearer\Facades\Gearer::class,
];
```

For Laravel 5.5+ they will be registered automatically

You can publish the `gearer.php` config with:

```
$ php artisan vendor:publish --provider="Revlenuwe\Gearer\GearerServiceProvider"
```

Usage
-----

[](#usage)

##### Creating order:

[](#creating-order)

```
$order = Gearer::createOrder($amount, $lastKeyChainId);
```

##### Canceling order:

[](#canceling-order)

```
$result = Gearer::cancelOrder($orderOrPaymentId);
```

##### Receiving Last Keychain ID:

[](#receiving-last-keychain-id)

```
$lastKeyChainId = Gearer::getLastKeychainId();

// 1
```

##### Checking Order Status Manually:

[](#checking-order-status-manually)

```
$orderData = Gearer::checkOrderStatusManually($paymentId);

/*
{
  "status": 2,
  "amount": 7894000,
  "address": "1NZov2nm6gRCGW6r4q1qHtxXurrWNpPr1q",
  "transaction_ids": ["f0f9205e41bf1b79cb7634912e86bb840cedf8b1d108bd2faae1651ca79a5838"],
  "id": 1,
  "payment_id": "y78033435ea02f024f9abdfd04adabe314a322a0d353c33beb3acb7d97f1bdeb",
  "amount_in_btc": "0.07894",
  "amount_paid_in_btc": "0.07894",
  "keychain_id": 3,
  "last_keychain_id": 3
}
*/
```

##### Order Websocket URL:

[](#order-websocket-url)

```
$websocketUrl = Gearer::getOrderWebsocketUrl($orderId);

// https://gateway.gear.mycelium.com/gateways/:api_gateway_id/orders/:orderId:/websocket
```

##### Receiving Order Status Change Callback:

[](#receiving-order-status-change-callback)

```
public function handleCallback(Request $request)
{
    //Passing $request is optional
    $order = Gearer::handleOrderStatusCallback($request);

    if($order !== false){
        /*
        [
          "status": 2,
          "amount": 7894000,
          "address": "1NZov2nm6gRCGW6r4q1qHtxXurrWNpPr1q",
          "transaction_ids": ["f0f9205e41bf1b79cb7634912e86bb840cedf8b1d108bd2faae1651ca79a5838"],
          "id": 1,
          "payment_id": "y78033435ea02f024f9abdfd04adabe314a322a0d353c33beb3acb7d97f1bdeb",
          "amount_in_btc": "0.07894",
          "amount_paid_in_btc": "0.07894",
          "keychain_id": 3,
          "last_keychain_id": 3
        ]
        */
    }
}
```

##### Setting config on the fly:

[](#setting-config-on-the-fly)

```
$gearer = Gearer::setConfig($gatewayId, $gatewaySecret);

$lastKeychainId = $gearer->getLastKeychainId();
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

1981d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.0.1PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3e33546963509bd36dd439243be4454fc1e1179ffde272f081e203123ca67d0?d=identicon)[revlen](/maintainers/revlen)

---

Top Contributors

[![revlenuwe](https://avatars.githubusercontent.com/u/60359097?v=4)](https://github.com/revlenuwe "revlenuwe (22 commits)")

---

Tags

bitcoincryptocurrencygatewaygateway-apilaravellaravel-gatewaylaravelbitcoinlaravel-paymentlaravel-gatewaygearrevlenuwegearermycelium

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/revlenuwe-gearer/health.svg)

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

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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