PHPackages                             sofe/capital - 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. sofe/capital

ActiveProject

sofe/capital
============

0.1.2(4y ago)34317[5 issues](https://github.com/SOF3/Capital/issues)[5 PRs](https://github.com/SOF3/Capital/pulls)Apache-2.0PHPCI failing

Since Jan 8Pushed 3y ago3 watchersCompare

[ Source](https://github.com/SOF3/Capital)[ Packagist](https://packagist.org/packages/sofe/capital)[ RSS](/packages/sofe-capital/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (9)Versions (7)Used By (0)

Capital
=======

[](#capital)

[![CI](https://github.com/SOF3/Capital/actions/workflows/ci.yml/badge.svg)](https://github.com/SOF3/Capital/actions/workflows/ci.yml)

An extensible economy plugin for PocketMine-MP.

How is Capital different from other economy plugins?
----------------------------------------------------

[](#how-is-capital-different-from-other-economy-plugins)

As a core API for economy, Capital supports different styles of account management:

- You can have the old, simple one-account-per-player mechanism.
- Or do you like currencies? You can add new currencies to config.yml and other plugins will let you configure which currency to use in each case.
- Or are currencies too complicated for you? What about just having one account per world? You don't need any special configuration in other plugins!
- Are commands and form UI boring for you? Maybe use banknote/wallet items so that players lose money when they drop the item? (Capital itself does not support banknote/wallet items, but it is the *only* economy API where both simple accounts and item payment can be used from other plugins without writing code twice)
- Or maybe sometimes the money goes to the faction bank account instead of player account?
- Capital is extensible for other plugins to include new account management styles, and it will work automatically with all plugins!

Other cool features include:

- Powerful analytics commands. How much active capital is there? How is wealth distributed on the server? Which industries are the most active? What are the biggest transactions in the server yesterday? Capital can help you answer these questions with label-based analytics.
- Is editing the config file too confusing for you? Capital supports self-healing configuration. Your config file will be automatically regenerated if something is wrong, and Capital will try its best to guess what you really wanted.
- Supports migration from other economy plugins, including:
    - EconomyAPI
- Uses async database access, supporting both SQLite and MySQL. Capital will not lag your server.
- Safe for multiple servers. Transactions are strictly atomic. Players cannot duplicate money by joining multiple servers.

Setting up
----------

[](#setting-up)

After running the server with Capital the first time, Capital generates config.yml and db.yml, which you can edit to configure Capital.

db.yml is used for configuring the database used by Capital. You can use sqlite or mysql here. The configuration is same as most other plugins.

config.yml is a large config that allows you to change almost everything in Capital. Read the comments in config.yml for more information. Text after `'# xxx:` are comments. If you edit config.yml incorrectly, Capital will try to fix the config.yml and save the old one as config.yml.old so that you can refer to it if Capital fixed it incorrectly.

Default commands
----------------

[](#default-commands)

All commands in Capital can be configured in config.yml. Try searching them in the config file to find out the correct place. The following commands come from the default config:

Player commands:

- `/pay   [account...]`: Pay money to another player with your own account.
- `/checkmoney`: Check your own wealth.
- `/richest`: View the richest players on the server.

Admin commands:

- `/addmoney   [account...]`: Add money to a player's account.
- `/takemoney   [account...]`: Remove money from a player's account.
- `/checkmoney `: Check the wealth of another player.

`[account...]` can be used to select the account (e.g. currency) if you change the schema in config.yml. (You can still disable these arguments by setting up `selector` in config.yml)

You can create many other useful commands by editing config.yml, e.g. check how much money was paid by `/pay` command! Check out the comments in config.yml for more information.

Community, Contact &amp; Contributing
-------------------------------------

[](#community-contact--contributing)

If you want to get help, share your awesome config setup or show off your cool plugin that uses Capital, create a discussion [on GitHub](https://github.com/SOF3/Capital/discussions).

To report bugs, create an issue [on GitHub](https://github.com/SOF3/Capital/issues).

If you want to help with developing Capital, see [dev.md](dev.md) for a comprehensive walkthrough of the internals.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.8% 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

1535d ago

### Community

Maintainers

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

---

Top Contributors

[![SOF3](https://avatars.githubusercontent.com/u/19623715?v=4)](https://github.com/SOF3 "SOF3 (141 commits)")[![Swift-Strider](https://avatars.githubusercontent.com/u/62265561?v=4)](https://github.com/Swift-Strider "Swift-Strider (59 commits)")[![Nerahikada](https://avatars.githubusercontent.com/u/15967582?v=4)](https://github.com/Nerahikada "Nerahikada (3 commits)")[![KygekDev](https://avatars.githubusercontent.com/u/68368066?v=4)](https://github.com/KygekDev "KygekDev (1 commits)")[![AIPTU](https://avatars.githubusercontent.com/u/85402087?v=4)](https://github.com/AIPTU "AIPTU (1 commits)")[![SmallkingDev](https://avatars.githubusercontent.com/u/57811430?v=4)](https://github.com/SmallkingDev "SmallkingDev (1 commits)")[![JavierLeon9966](https://avatars.githubusercontent.com/u/58715544?v=4)](https://github.com/JavierLeon9966 "JavierLeon9966 (1 commits)")[![Endermanbugzjfc](https://avatars.githubusercontent.com/u/53002741?v=4)](https://github.com/Endermanbugzjfc "Endermanbugzjfc (1 commits)")

---

Tags

economypocketminepocketmine-plugins

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sofe-capital/health.svg)

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

###  Alternatives

[sof3/libasynql

1427.8k3](/packages/sof3-libasynql)[muqsit/invmenu

A PocketMine-MP virion to create and manage virtual inventories!

2234.2k1](/packages/muqsit-invmenu)[muqsit/simple-packet-handler

Handle specific data packets (virion for PMMP API 4.0.0)

426.1k3](/packages/muqsit-simple-packet-handler)[dktapps/pmforms

Form API library for PocketMine-MP plugins

522.3k1](/packages/dktapps-pmforms)[sof3/infoapi

321.2k1](/packages/sof3-infoapi)[muqsit/asynciterator

A virion that simplifies writing tasks that traverse iterators

182.9k](/packages/muqsit-asynciterator)

PHPackages © 2026

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