PHPackages                             xypp/pay-to-read - 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. xypp/pay-to-read

ActiveFlarum-extension

xypp/pay-to-read
================

付费阅读

v2.0.0(1y ago)112.6k3[3 issues](https://github.com/zxy19/flarum-pay-to-read/issues)MITPHP

Since Aug 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zxy19/flarum-pay-to-read)[ Packagist](https://packagist.org/packages/xypp/pay-to-read)[ RSS](/packages/xypp-pay-to-read/feed)WikiDiscussions master Synced 1mo ago

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

付费阅读\[Pay to Read\]
===================

[](#付费阅读pay-to-read)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/08bb7536d0d90c5bdbf50105a4df608eff615f8d3c4319e442131b73aa354c40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f787970702f7061792d746f2d726561642e737667)](https://packagist.org/packages/xypp/pay-to-read) [![Total Downloads](https://camo.githubusercontent.com/f5046f1580953602b5fa99b41cd619b824fb831e4bad13ff7b47c87753266f6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f787970702f7061792d746f2d726561642e737667)](https://packagist.org/packages/xypp/pay-to-read)

一个 [Flarum](http://flarum.org) 使用的付费阅读插件。支持了最基本的付费阅读设置操作。

基于 `antoinefr/flarum-ext-money`

> **注意：从v1.1.1-&gt;v1.2.0 由于一些意外导致了模型不兼容，请手动将数据库中的ammount字段改为amount，或直接删除插件重装**

大版本迁移指南
-------

[](#大版本迁移指南)

如果您已经安装了1.x版本，在安装2.0版本后，你需要执行以下操作

- 备份所有数据库或post表（推荐）
- 运行`php flarum migrate`
- 运行`php flarum xypp-ptr:migrate`
- 运行`php flarum cache:clear`

上述步骤完成后，请检查是否与之前的效果一致。

使用说明
----

[](#使用说明)

安装插件后，在管理员后台启用该插件，即可在Composer编辑器中看到付费可见图标。

点击图标，将插入如下BBCode：

```
[pay amount=1]...这里是你设置的提示语[/pay]

```

将提示语删除，并换成你的内容，保存即可生效。

编辑帖子时，你将看到pay后面多了个ID

```
[pay amount=1 id=1]
...内容
[/pay]

```

如果希望付费用户不需要重新付费，则不修改id；否则，请删除id=1这整项。

**请不要手动将ID修改为其他值，这将导致一些奇怪的问题**

> 虽然按说同一个帖子两个Block同一个ID可以做到付费一次看两个啥的emmmm
>
> 还是当作没有这回事好了。

如果发现问题，欢迎Issue留言。

> 另：本插件默认支持嵌套付费。如果不希望出现请在设置中将嵌套层数改为0

安装
--

[](#安装)

composer:

```
composer require xypp/pay-to-read:"*"
```

更新
--

[](#更新)

```
composer update xypp/pay-to-read:"*"
php flarum migrate
php flarum cache:clear
```

Links
-----

[](#links)

- [Packagist](https://packagist.org/packages/xypp/pay-to-read)
- [GitHub](https://github.com/xypp/pay-to-read)

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98% 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 ~29 days

Recently: every ~8 days

Total

13

Last Release

630d ago

Major Versions

v1.3.6 → v2.0.02024-08-17

### Community

Maintainers

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

---

Top Contributors

[![zxy19](https://avatars.githubusercontent.com/u/23428495?v=4)](https://github.com/zxy19 "zxy19 (48 commits)")[![FoskyM](https://avatars.githubusercontent.com/u/39661663?v=4)](https://github.com/FoskyM "FoskyM (1 commits)")

---

Tags

moneyflarumpay to read

### Embed Badge

![Health badge](/badges/xypp-pay-to-read/health.svg)

```
[![Health](https://phpackages.com/badges/xypp-pay-to-read/health.svg)](https://phpackages.com/packages/xypp-pay-to-read)
```

###  Alternatives

[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/gamification

Upvotes and downvotes for your Flarum community

4157.1k6](/packages/fof-gamification)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)[flarum-lang/russian

Russian language pack for Flarum.

13126.1k](/packages/flarum-lang-russian)[fof/drafts

Allow users to create post and discussion drafts

1771.1k5](/packages/fof-drafts)

PHPackages © 2026

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