PHPackages                             topshelfcraft/credits - 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. [Framework](/categories/framework)
4. /
5. topshelfcraft/credits

ActiveCraft-plugin[Framework](/categories/framework)

topshelfcraft/credits
=====================

A simple starter framework for implementing credits/accounts with Craft Commerce.

3.0.1(7y ago)1361proprietaryPHP

Since Mar 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/TopShelfCraft/Credits)[ Packagist](https://packagist.org/packages/topshelfcraft/credits)[ RSS](/packages/topshelfcraft-credits/feed)WikiDiscussions 3.x Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Credits
=======

[](#credits)

*A simple starter framework for implementing credits/accounts with Craft Commerce.*

**A [Top Shelf Craft](https://topshelfcraft.com) creation**
[Michael Rog](https://michaelrog.com), Proprietor

---

### Interacting with Credits accounts via command line

[](#interacting-with-credits-accounts-via-command-line)

The *Credits* plugin provides commands for an admin to manually check or manipulate the balance of a credits account.

To check a balance:

```
./craft credits/accounts/check-balance --user=767

./craft credits/accounts/check-balance --accountId=1

./craft credits/accounts/check-balance --reference=b8d0e46d40767228493d84283fe5ac1e

```

To credit/debit/adjust an account:

```
./craft credits/accounts/credit --user=767 --amount=100

./craft credits/accounts/debit --accountId=767 --amount=100

./craft credits/accounts/adjust --reference=b8d0e46d40767228493d84283fe5ac1e --amount=-100

```

(As a convention, the amounts of Credits and Debits will always be positive. The amount of an Adjustment may be positive or negative.)

These adjustment actions may also include an optional note:

```
./craft credits/accounts/credit --user=767 --amount=100 --note="Here, have a hundo."

./craft credits/accounts/adjust --user=767 --amount=-100 --note="Oops, need that hundo back."

./craft credits/accounts/debit --user=767 --amount=100 --note="Something offline cost a hundo."

```

Note: The system will not object if an admin debits an account to a balance below zero.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

Total

2

Last Release

2652d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fabbca3f39380eadb6f89517be9a0fbc550159a1eec925452da43d14338de66?d=identicon)[TopShelfCraft](/maintainers/TopShelfCraft)

---

Top Contributors

[![michaelrog](https://avatars.githubusercontent.com/u/102379?v=4)](https://github.com/michaelrog "michaelrog (1 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincommercecreditsbalanceaccountscraftcommerce

### Embed Badge

![Health badge](/badges/topshelfcraft-credits/health.svg)

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

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k58](/packages/verbb-formie)[verbb/vizy

A flexible visual editor field for Craft.

4249.7k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24142.6k12](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16168.8k6](/packages/verbb-icon-picker)[verbb/tablemaker

Create customizable and user-defined table fields.

40174.4k2](/packages/verbb-tablemaker)

PHPackages © 2026

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