PHPackages                             kylemassacre-mcc/bank - 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. kylemassacre-mcc/bank

ActiveLibrary

kylemassacre-mcc/bank
=====================

A bank module for the MCC api

v1.0.0(9y ago)012PHPPHP &gt;=5.5.9

Since Mar 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/KyleMassacre/MCC-API-Bank)[ Packagist](https://packagist.org/packages/kylemassacre-mcc/bank)[ RSS](/packages/kylemassacre-mcc-bank/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

MCC-API-Bank
============

[](#mcc-api-bank)

#### *For Laravel 5.1*

[](#for-laravel-51)

#### Installation

[](#installation)

Install via cli `php artisan module:install kylemassacre-mcc/bank`Open up app/Providers/AppServiceProvider.php and add in the register method:

```
$this->app->bind([
    ...
    \Modules\Bank\Providers\BankServiceProvider::class
]);
```

Run the artisan command: `php artisan vendor:publish --provider="Modules\Bank\Providers\BankServiceProvider"`

#### API Endpoints:

[](#api-endpoints)

MethodEndpointRoute NameGET/HEAD/api/cyberbank/buycyber.buyPOST/api/cyberbank/depositcyber.depositPOST/api/cyberbank/withdrawcyber.withdrawGET/HEAD/api/bank/buybank.buyPOST/api/bank/depositbank.depositPOST/api/bank/withdrawbank.withdraw### Sample Responses

[](#sample-responses)

##### Successful Withdraw

[](#successful-withdraw)

```
{
  "success": {
    "message": "You have withdrew $1 from your account",
    "txn_details": {
      "amount": "$2",
      "past_balance": "$5",
      "new_balance": "$3",
      "fees": "$1"
    }
  }
}
```

##### Successful Deposit

[](#successful-deposit)

```
{
  "success": {
    "message": "You have deposited $1 into your account",
    "txn_details": {
      "amount": "$2",
      "past_balance": "$3",
      "new_balance": "$4",
      "fees": "$1"
    }
  }
}
```

##### Invalid Responses

[](#invalid-responses)

**Malformed Amount**

```
{
  "message": "422 Unprocessable Entity",
  "errors": {
    "amount": [
      "You must provide a valid transaction amount",
      "Your transaction amount must be at least $2"
    ]
  }
```

**Not enough funds**

```
{
  "message": "You don't have enough funds to put that in your bank",
  "status_code": 200,
}
```

```
{
  "message": "You don't have enough funds in your Cyber Bank",
  "status_code": 200,
}
```

**No Bank**

```
{
  "message": "You must own a Cyber Bank",
  "status_code": 200,
}
```

**Purchase Bank**

```
{
  "success": "You have purchased a Bank"
}
```

**Can't afford Bank**

```
{
  "message": "You do not have $10,000,000 to open an account",
  "status_code": 200,
}
```

**Already Own Bank**

```
{
  "message": "You already own a Bank",
  "status_code": 200,
}
```

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3648d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3505b1543af3501aa97b403ae3c1e4e7f2d6437221b927323de229ab3b3dc822?d=identicon)[KyleMassacre](/maintainers/KyleMassacre)

---

Top Contributors

[![KyleMassacre](https://avatars.githubusercontent.com/u/4021612?v=4)](https://github.com/KyleMassacre "KyleMassacre (6 commits)")

### Embed Badge

![Health badge](/badges/kylemassacre-mcc-bank/health.svg)

```
[![Health](https://phpackages.com/badges/kylemassacre-mcc-bank/health.svg)](https://phpackages.com/packages/kylemassacre-mcc-bank)
```

PHPackages © 2026

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