Download the PHP package wszdb/flarum-autolock without Composer

On this page you can find all versions of the php package wszdb/flarum-autolock. 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 flarum-autolock

Flarum Auto Lock Extension

License Flarum PHP Version

🔒 Automatically lock discussions when they reach a specified number of posts.

🔒 Flarum 贴子自动锁定插件,设置后,某个贴子回复数量超过特定楼层时,自动锁定,同时支持对特定标签(Tags)锁定豁免.

✨ New in v2.4.0

Features

Installation

Install via Composer:

Enable the extension:

Clear cache:

Configuration

  1. Navigate to Admin PanelExtensions
  2. Find Auto Lock extension
  3. Click Settings button
  4. Configure options:
    • Enable Auto Lock: Toggle to enable/disable the feature
    • Post Count Threshold: Set the number of posts after which discussions will be locked (minimum: 1, default: 100)
    • Exempt Tags: Select tags that should be exempt from auto-locking (NEW in v2.2)

How It Works

Post Count Calculation

The extension uses the following formula to calculate total posts:

Tag Exemption (v2.2)

Discussions with exempt tags will never be auto-locked, regardless of post count:

  1. Admin selects exempt tags in extension settings
  2. When a post is published, the extension checks discussion tags
  3. If any tag matches exempt list → Skip auto-lock
  4. Otherwise → Apply normal threshold logic 局部截取_20251012_114438

Trigger Logic

  1. When a new post is published, the extension listens to the Posted event
  2. It refreshes the discussion data and calculates total posts
  3. Checks if discussion has any exempt tags (v2.2)
  4. If total posts ≥ threshold and discussion is not locked, it locks the discussion
  5. All actions are logged for monitoring

License

This extension is licensed under the MIT License.

Links


Developed by wszdb


All versions of flarum-autolock with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^1.8.0
php Version ^8.2
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 wszdb/flarum-autolock contains the following files

Loading the files please wait ...