PHPackages                             zhihe/money-system - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. zhihe/money-system

ActiveFlarum-extension[Authentication &amp; Authorization](/categories/authentication)

zhihe/money-system
==================

Advanced money system for content access control with view costs and tag-based restrictions

v1.0.0(9mo ago)12121MITPHP

Since Aug 12Pushed 9mo agoCompare

[ Source](https://github.com/echolocked/zhihe-money-system)[ Packagist](https://packagist.org/packages/zhihe/money-system)[ RSS](/packages/zhihe-money-system/feed)WikiDiscussions main Synced 1mo ago

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

Advanced Money System for Flarum
================================

[](#advanced-money-system-for-flarum)

[![Latest Stable Version](https://camo.githubusercontent.com/c9fc0145d08df0a83d7c7e445fd2b36e6bf40495d383d4a80e2fd3ea261f73cb/68747470733a2f2f706f7365722e707567782e6f72672f7a686968652f6d6f6e65792d73797374656d2f762f737461626c65)](https://packagist.org/packages/zhihe/money-system)[![Total Downloads](https://camo.githubusercontent.com/f2b81ccb81f50e1fbcf3600bbaaa9ac70cd3453d77469f31684e17a4ff2ac086/68747470733a2f2f706f7365722e707567782e6f72672f7a686968652f6d6f6e65792d73797374656d2f646f776e6c6f616473)](https://packagist.org/packages/zhihe/money-system)[![License](https://camo.githubusercontent.com/fdb2f5368f24c41e239248966d3d59e1dd4b31d8dbc634d089d42a2ee7307384/68747470733a2f2f706f7365722e707567782e6f72672f7a686968652f6d6f6e65792d73797374656d2f6c6963656e7365)](https://packagist.org/packages/zhihe/money-system)

Advanced money system for Flarum with content access control, view costs, and tag-based restrictions.

Features
--------

[](#features)

### 🎯 Core Functionality

[](#-core-functionality)

- **View Costs**: Deduct money when users view posts/discussions
- **Zero-Money Blocking**: Prevent access when user money &lt;= 0
- **Tag-Based Restrictions**: Require minimum money threshold for certain tags
- **Advanced Access Control**: Comprehensive permission system

### 💰 Money Management

[](#-money-management)

- Built on top of `antoinefr/flarum-ext-money`
- **Initial Money**: Give new users starting money amount on registration
- Custom transaction logging
- Flexible cost configuration
- Admin controls for rates and restrictions

### 🔒 Access Control Levels

[](#-access-control-levels)

1. **Post Level**: Individual post view costs
2. **Discussion Level**: Discussion access requirements
3. **Tag Level**: Minimum money requirements for tag access
4. **User Level**: Zero-money blocking

Requirements
------------

[](#requirements)

- Flarum 1.8.0+
- PHP 8.1+
- `antoinefr/flarum-ext-money` extension

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

[](#installation)

```
composer require zhihe/money-system
php flarum extension:enable zhihe-money-system
php flarum migrate
```

Configuration
-------------

[](#configuration)

Access admin panel → Extensions → Zhihe Money System to configure:

- **Payment Amount**: Money deducted per discussion view
- **Initial Money**: Starting money amount for new users
- Tag-based money requirements (coming soon)
- Zero-money blocking settings
- Transaction logging options

Usage
-----

[](#usage)

### For Administrators

[](#for-administrators)

- Set view costs for different content types
- Configure initial money amount for new users
- Configure tag-based restrictions
- Monitor user money transactions
- Manage access policies

### For Users

[](#for-users)

- Receive starting money upon registration
- View your money balance in profile
- Money is deducted when viewing discussions
- Earn money through participation (via antoinefr/flarum-ext-money)
- Track your spending history

🛠️ Development
--------------

[](#️-development)

This extension is designed to work seamlessly with the existing Flarum ecosystem while providing advanced money-based access control for content platforms.

### Local Development Setup

[](#local-development-setup)

```
git clone https://github.com/echolocked/zhihe-money-system.git
cd zhihe-money-system
composer install
```

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License
---------

[](#-license)

MIT License

🆘 Support
---------

[](#-support)

- **Issues**: [GitHub Issues](https://github.com/echolocked/zhihe-money-system/issues)
- **Community**: [Flarum Community Forum](https://discuss.flarum.org)

---

*Love this extension? Consider starring the repository and sharing it with the Flarum community! ⭐*

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance57

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

280d ago

### Community

Maintainers

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

---

Top Contributors

[![echolocked](https://avatars.githubusercontent.com/u/8471201?v=4)](https://github.com/echolocked "echolocked (9 commits)")

---

Tags

moneyflarumaccess-controleconomypay to view

### Embed Badge

![Health badge](/badges/zhihe-money-system/health.svg)

```
[![Health](https://phpackages.com/badges/zhihe-money-system/health.svg)](https://phpackages.com/packages/zhihe-money-system)
```

###  Alternatives

[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)[fof/doorman

Create invite codes for users to sign up and be assigned to a group

2537.2k2](/packages/fof-doorman)[maicol07/flarum-ext-sso

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)[fof/terms

Ask users to accept terms of use before using the forum

1367.8k1](/packages/fof-terms)[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3013.3k](/packages/fof-passport)[foskym/flarum-oauth-center

Allow user to authorize the third clients

221.4k](/packages/foskym-flarum-oauth-center)

PHPackages © 2026

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