定制 pschilly/filament-dcs-server-stats 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Filament 4.x Required DCSServerBotAPI DCSServerBot GitHub Actions Workflow Status

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 pschilly/filament-dcs-server-stats 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 35
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-23