zephyrisle / formatting-pro
Enhanced Flarum formatting extension with audio support, Chinese platforms (NetEase Cloud Music, Bilibili), and custom audio CSS(Fork from fof-formatting)
Package info
github.com/Zephyr-Isle/formatting-pro
Type:flarum-extension
pkg:composer/zephyrisle/formatting-pro
Requires
- php: ^8.3
- flarum/core: ^2.0.0
Requires (Dev)
- flarum/phpstan: ^2.0.0
This package is auto-updated.
Last update: 2026-07-01 05:47:53 UTC
README
This is a fork of the original FriendsOfFlarum/formatting extension for Flarum, maintained as a separate project with additional audio support, Chinese platform embeds (NetEase Cloud Music, Bilibili), and custom audio CSS.
Fork Notice
This repository is a forked and independently maintained derivative of:
- Original source: FriendsOfFlarum/formatting
- This fork: Zephyr-Isle/formatting-pro
Please refer to the original repository for upstream source history and the original implementation.
Features
- Auto Audio: Convert audio URLs into HTML5 audio players
- NetEase Cloud Music: Embed content from NetEase Cloud Music (网易云音乐)
- Bilibili: Embed content from Bilibili (哔哩哔哩)
- Custom Audio CSS: Customize the appearance of audio players with custom CSS
Installation
Install with composer:
composer require zephyrisle/formatting-pro
Updating
composer update zephyrisle/formatting-pro
Configuration
After installation, go to the Admin Panel > Extensions > Formatting Pro to configure:
- Auto Audio: Enable to convert audio URLs to HTML5 audio players
- NetEase Cloud Music: Enable to embed NetEase Cloud Music content
- Bilibili: Enable to embed Bilibili content
- Custom Audio CSS: Enter custom CSS to style audio players
Usage
Auto Audio
Simply post an audio URL in a post, and it will be automatically converted to an HTML5 audio player:
https://example.com/audio.mp3
NetEase Cloud Music
Share NetEase Cloud Music links to embed them in posts:
https://music.163.com/#/song?id=123456
Bilibili
Share Bilibili video links to embed them in posts:
https://www.bilibili.com/video/BV1xx411c7mD
Custom Audio CSS
Use the custom CSS field to style audio players. Example:
audio { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: #f5f5f5; }
Links
Requirements
- Flarum 2.0+
License
MIT
Credits
Forked from FriendsOfFlarum/formatting by FriendsOfFlarum.
Maintained as a separate fork by zephyrisle.