Download the PHP package ralkage/flarum-ext-civility-filter without Composer

On this page you can find all versions of the php package ralkage/flarum-ext-civility-filter. 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-ext-civility-filter

Civility Filter

AI-powered content moderation extension for Flarum that automatically analyzes posts for civility using Anthropic Claude, OpenAI GPT, or OpenRouter.

Features

AI Analysis

4-Tier Action System

Action Default Threshold Behavior
Allowed 0–59 Post published normally
Warned 60–79 Post published, logged, user notified
Moderated 80–94 Post held in moderation queue for review
Blocked 95–100 Post rejected, user sees error message

All thresholds are configurable in 5-point increments.

Content Filtering

Moderation Tools

Automated Enforcement

Notifications

Forum Integration

Installation

Enable the extension in the admin panel under Extensions > Civility Filter.

Configuration

Navigate to the extension settings page in the admin panel. The settings are organized into sections:

General

AI Provider

Thresholds

Filtering

Custom Prompt

Auto-Suspend

Webhooks

Logging & Limits

Permissions

Permission Description
Bypass Civility Filter Users with this permission skip all civility analysis

Configure under the Permissions section of the extension settings page.

API Endpoints

All endpoints require admin authentication unless noted.

Method Endpoint Description
GET /api/civility-logs List logs (paginated, filterable)
DELETE /api/civility-logs Clear all logs
GET /api/civility-logs/export Download CSV export
GET /api/civility-logs/stats Statistics and trends
POST /api/civility-logs/test Test analyzer
POST /api/civility-logs/moderate Quick actions (approve/delete/suspend)
GET /api/civility-logs/user?userId=X Per-user civility history

Scoring Guide

The AI evaluates posts on a 0–100 scale:

Score Range Meaning
0–20 Civil, constructive, or neutral
21–40 Mildly rude or snarky but not harmful
41–60 Hostile tone, dismissive, or antagonistic
61–80 Personal attacks, inflammatory language, bad-faith arguing
81–95 Hate speech, severe harassment, threats
96–100 Extreme abuse or dangerous content

Political disagreement alone is not considered uncivil. The AI focuses on how something is said, not what position is taken.

Categories

The AI categorizes issues found in posts:

personal_attack · inflammatory · hate_speech · bad_faith · trolling · harassment · threat · profanity · discrimination

Requirements

Links

License

MIT License. See LICENSE for details.


All versions of flarum-ext-civility-filter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.0.0-beta.7
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 ralkage/flarum-ext-civility-filter contains the following files

Loading the files please wait ...