pschilly/filament-dcs-server-stats
Composer 安装命令:
composer require pschilly/filament-dcs-server-stats
包简介
This package is a series of widgets, pages and panels for Filament PHP and is loaded as a plugin. It interfaces with the DCS Server Bot API by Special-K to obtain statistics gathered from managed Digital Combat Simulator (DCS) servers.
README 文档
README
This package is a series of widgets and pages for Filament PHP and is loaded as a plugin. It interfaces with the DCS Server Bot by Special-K via the Laravel Package DCS Server Bot API to obtain statistics gathered from managed Digital Combat Simulator (DCS) servers.
Installation
You can install the package via composer:
composer require pschilly/filament-dcs-server-stats
Important
If you have not set up a custom theme and are using Filament Panels follow the instructions in the Filament Docs first.
After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone packages.
@source '../../../../vendor/pschilly/filament-dcs-server-stats/resources/**/*.blade.php';
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-dcs-server-stats-views"
Usage
Enable the plugin on your panel of choice:
$panel ->plugins([ \Pschilly\FilamentDcsServerStats\FilamentDcsServerStatsPlugin::make() ])
Configuration
By default, this plugin assumes you want everything and has everything turned on. So if you pass no variables at all - that is what you will get.
Referencing below, change what suits you best - I would also encourage you to use some sort of DB based config system to make this a more user friendly experience but I will leave that up to you.
Server Selector
The server selector is enabled by default, however, if you wish to disable it you may do so as follows:
use Pschilly\FilamentDcsServerStats\Pages as DCSServerBotPages; $panel ->plugins([ \Pschilly\FilamentDcsServerStats\FilamentDcsServerStatsPlugin::make() ->serverSelector(false) ]);
Pages
By default, all pages will be registered. If you wish to disable some of them, pass an array of pages as follows:
use Pschilly\FilamentDcsServerStats\Pages as DCSServerBotPages; $panel ->plugins([ \Pschilly\FilamentDcsServerStats\FilamentDcsServerStatsPlugin::make() ->pages([ DCSServerBotPages\Leaderboard::class, DCSServerBotPages\PlayerStats::class, DCSServerBotPages\Squadrons::class, // Requires that you have the `squadrons` feature enabled within the DCS Server Bot DCSServerBotPages\Servers::class, ]); ])
Dashboard & Dashboard Widgets
By default, the Dashboard for the Filament Panel that you have enabled the plugin on will be overwritten by the included one with all widgets available. If you wish to change this, configure as follows:
use Pschilly\FilamentDcsServerStats\Widgets as DCSServerBotDashboardWidgets; $panel ->plugins([ \Pschilly\FilamentDcsServerStats\FilamentDcsServerStatsPlugin::make() ->dashboard(false) // Will disable the included dashboard - note, the following will also not funciton if you do so. ->dashboardWidgets([ DCSServerBotDashboardWidgets\ServerStatistics::class, DCSServerBotDashboardWidgets\DailyPlayersChart::class, DCSServerBotDashboardWidgets\TopPilots::class, DCSServerBotDashboardWidgets\TopSquadrons::class, // Requires that you have the `squadrons` and `credits` features enabled within the DCS Server Bot ]); ])
Note
The order that you put the widgets in the array will dictate the order that they appear on the page.
Leaderboard Columns
By default, the Leaderboard will show all columns - if you want to change this behaviour, configure as follows:
Note
No matter what you provide, the bare minimum displayed will be: Ranking, Callsign & Kills so as to not entirely break the page.
$panel ->plugins([ \Pschilly\FilamentDcsServerStats\FilamentDcsServerStatsPlugin::make() ->leaderboardColumns([ 'deaths', 'kdr', 'credits', 'playtime' ]); ])
Note
The order that you put the columns in the array will dictate the order that they appear on the page.
Player Stats Widgets
By default, the Player Stats page will show all widgets - if you want to change this behaviour, configure as follows:
use Pschilly\FilamentDcsServerStats\Widgets\PlayerStats as DCSServerBotPlayerStatsWidgets; $panel ->plugins([ \Pschilly\FilamentDcsServerStats\FilamentDcsServerStatsPlugin::make() ->playerStatsWidgets([ DCSServerBotPlayerStatsWidgets\CombatChart::class, DCSServerBotPlayerStatsWidgets\ModuleChart::class, DCSServerBotPlayerStatsWidgets\PveChart::class, DCSServerBotPlayerStatsWidgets\PvpChart::class, DCSServerBotPlayerStatsWidgets\SortieChart::class ]); ])
Note
The order that you put the widgets in the array will dictate the order that they appear on the page.
Squadrons & Servers
At present, there are no configuration values for these pages. What you see is what you get.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
pschilly/filament-dcs-server-stats 适用场景与选型建议
pschilly/filament-dcs-server-stats 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 08 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「filamentphp」 「pschilly」 「filament-dcs-server-stats」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pschilly/filament-dcs-server-stats 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pschilly/filament-dcs-server-stats 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pschilly/filament-dcs-server-stats 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Filament plugin that integrates tabler icons, allowing you to use them seamlessly across Filament forms, tables, actions, and more.
jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.
Send Notification to discord channel Webhook using native FilamentPHP Notification Facade class
Alfabank REST API integration
This package acts as an interface service for the DCS Server Bot RestAPI in order to access information from the bot on a remote web server for display purposes.
Filament administration, page editing, recovery, settings, and operations for Capell CMS.
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-23