Download the PHP package xypp/pay-to-read without Composer

On this page you can find all versions of the php package xypp/pay-to-read. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pay-to-read

付费阅读[Pay to Read]

License Latest Stable Version Total Downloads

一个 Flarum 使用的付费阅读插件。支持了最基本的付费阅读设置操作。

基于 antoinefr/flarum-ext-money

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

大版本迁移指南

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

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

使用说明

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

点击图标,将插入如下BBCode:

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

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

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

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

虽然按说同一个帖子两个Block同一个ID可以做到付费一次看两个啥的emmmm

还是当作没有这回事好了。

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

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

安装

composer:

更新

Links


All versions of pay-to-read with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^1.2.0
antoinefr/flarum-ext-money Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xypp/pay-to-read contains the following files

Loading the files please wait ....