PHPackages                             mechawrench/laracoins - 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. mechawrench/laracoins

ActiveLibrary

mechawrench/laracoins
=====================

WebApp currency, can be traded/sold/bought by users

v1.2.1(5y ago)037MITPHPPHP ^7.1 || ^8.0CI failing

Since Jun 26Pushed 5y ago1 watchersCompare

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

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

LaraCoins
=========

[](#laracoins)

[![LaraCoins Package](https://camo.githubusercontent.com/303c6ee936f83e12a88bed5344238b0af5841b9ca7b5b473669b663c744f52d2/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c617261436f696e732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d656368617772656e63682532466c617261636f696e73267061747465726e3d62616e6b4e6f7465267374796c653d7374796c655f31266465736372697074696f6e3d43757272656e63792532432b666f722b796f75722b7573657273253231266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667 "LaraCoins Package")](https://camo.githubusercontent.com/303c6ee936f83e12a88bed5344238b0af5841b9ca7b5b473669b663c744f52d2/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c617261436f696e732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d656368617772656e63682532466c617261636f696e73267061747465726e3d62616e6b4e6f7465267374796c653d7374796c655f31266465736372697074696f6e3d43757272656e63792532432b666f722b796f75722b7573657273253231266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6c3407046b9853b1a3d6ab17803ac0646549530f0cd7898f92cf114bbfc6c403/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656368617772656e63682f6c617261636f696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mechawrench/laracoins)[![Tests](https://github.com/mechawrench/laracoins/workflows/Tests/badge.svg)](https://github.com/mechawrench/laracoins/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/e175563b51b28fbe567288717426bfb89d56fd8260267b1d9e8680d89b569bfb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656368617772656e63682f6c617261636f696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mechawrench/laracoins)

WebApp currency, can be traded/sold/bought by users.

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

[](#installation)

You can install the package via composer:

```
composer require mechawrench/laracoins
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Mechawrench\Laracoins\LaracoinsServiceProvider" --tag="migrations"
php artisan migrate
```

Usage
-----

[](#usage)

```
// Import class (at top of file)
use Mechawrench\Laracoins;

// Fund user account
Laracoins::fundUser($user_id, $quantity, $comment);

// Lock and unlock user coins
Laracoins::lockUser($user_id);
Laracoins::unlockUser($user_id);

// Send coins between users
Laracoins::tradeCoins($to_user_id, $from_user_id, $amount, $comment);

// Get user balance
Laracoins::balance($user_id);

// Get user history
Laracoins::userHistory($user_id);

// Get top coin holders, sorted in desc order
Laracoins::topHolders();
Laracoins::topHolders($quantity);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jesse Schneider](https://github.com/Mechawrench)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~77 days

Total

5

Last Release

1836d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

v1.2.0PHP ^7.1 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![mechawrench](https://avatars.githubusercontent.com/u/7636463?v=4)](https://github.com/mechawrench "mechawrench (49 commits)")

---

Tags

coinscurrencylaraveltokenstradingmechawrenchlaracoins

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mechawrench-laracoins/health.svg)

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

PHPackages © 2026

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