flute-cms/cms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

flute-cms/cms

Composer 安装命令:

composer create-project flute-cms/cms

包简介

A flexible and modular CMS tailored for managing game servers.

README 文档

README

Flute CMS

Open-source CMS for game server communities

Release License Stars Discord PHP 8.2+

Documentation · Website · Discord · Marketplace · Русский

Flute is a free, self-hosted CMS designed for game server communities — CS2, CS:GO, TF2, Minecraft, and others. It ships with a modular plugin system, a built-in marketplace, an admin panel, payment integrations, and social auth out of the box. Install it, extend it, make it yours.

Note

Flute is under active development on the early branch. The main branch contains stable releases. If you'd like to contribute, please see the Contributing section.

Features

  • Modular architecture — install modules and themes from the built-in marketplace or develop your own
  • Game server integration — native support for Source (CS2, CS:GO, TF2), GoldSrc (CS 1.6), and Minecraft servers via query protocols
  • Payment system — built-in shop with 15+ payment gateways through Omnipay (Stripe, PayPal, FreeKassa, and more)
  • Admin panel — full management interface with role-based access control, analytics, and one-click updates
  • Social authentication — OAuth2 login via Steam, Discord, VK, Google, GitHub, and others through HybridAuth
  • REST API — first-class API for external integrations and custom frontends
  • Theme engine — Blade templating with SCSS compilation (native dart-sass), theme inheritance, and live preview
  • Multilingual — complete i18n system with runtime language switching
  • Player stats & bans — integrations with Levels Ranks, IKS Admin, Admin System, and more
  • Caching — multi-driver cache layer (Redis, Memcached, APCu, filesystem) with stale-while-revalidate support

Getting Started

Requirements

  • PHP 8.2+ (with ext-json, ext-mbstring, ext-pdo)
  • MySQL 5.7+ / MariaDB 10.3+ / PostgreSQL 12+
  • Composer 2.x

Installation

git clone https://github.com/flute-cms/cms.git
cd cms
composer install

Open your browser and follow the web installer. That's it.

Tip

Docker Compose and Nginx presets are included in the repository. See the deployment guide for details.

Tech Stack

Flute is built on PHP 8.2+ with a component-based architecture:

  • Routing & HTTP — Symfony Routing, HttpFoundation, HttpKernel
  • DatabaseCycle ORM with Active Record and auto-migrations
  • TemplatesBlade (Illuminate View) with SCSS via dart-sass / scssphp
  • AuthenticationHybridAuth for OAuth2 providers
  • PaymentsOmnipay for payment gateway abstraction
  • Caching — Symfony Cache (Redis, Memcached, APCu, filesystem adapters)
  • Logging — Monolog
  • DI Container — PHP-DI
  • HTTP Client — Guzzle

Project Structure

app/
├── Core/                   # Kernel: DI container, router, services, console
│   ├── Database/Entities/  # Cycle ORM entities
│   ├── Modules/            # Built-in modules (Admin, Auth, Payments, …)
│   ├── Services/           # Core services (Cache, Email, Encrypt, …)
│   └── ServiceProviders/   # DI service providers
├── Modules/                # Community / custom modules
├── Themes/                 # Installable themes
└── Helpers/                # Global helpers

config/                     # Default configuration
config-dev/                 # Local overrides (git-ignored)
public/                     # Web root — the only exposed directory
storage/                    # Cache, logs, uploads (writable)
i18n/                       # Localizations

Module Development

Every module lives in app/Modules/<Name>/ with a consistent structure:

MyModule/
├── module.json             # Metadata, version, dependencies
├── Providers/              # Service providers
├── Controllers/            # Route-attributed controllers
├── Services/               # Business logic
├── Resources/
│   ├── views/              # Blade templates
│   └── lang/               # Translations
└── database/migrations/    # Auto-generated migrations

Routes use PHP attributes — no separate route files:

#[Route('/my-module/example', name: 'my-module.example')]
public function example(): Response
{
    return view('MyModule::pages.example');
}

Full guide → docs.flute-cms.com/en/modules

CLI

php flute cache:clear              # Clear application cache
php flute cache:warmup             # Warm up cache
php flute template:cache:clear     # Clear compiled templates
php flute generate:migration       # Generate DB migration from entities
php flute generate:module          # Scaffold a new module
php flute routes:list              # Print all registered routes
php flute cron:run                 # Execute scheduled tasks

Contributing

We welcome contributions — bug reports, features, code, docs, and translations.

  1. Fork the repo and create a branch from early
  2. Make your changes and ensure composer test passes
  3. Submit a pull request

Branches:

  • main — stable releases
  • early — active development (target your PRs here)

Commit convention: imperative, scoped messages:

feat(auth): add OAuth2 authentication
fix(database): resolve connection timeout
core: fix router cache invalidation
module:Shop: add refund hook

See CONTRIBUTING.md for the full guide.

Security

If you discover a security vulnerability, please email flamesworkk@gmail.com instead of using the issue tracker. All security issues will be addressed promptly.

Community

License

Flute is open-source software licensed under the GNU General Public License v3.0 or later.

Created by Flames

flute-cms/cms 适用场景与选型建议

flute-cms/cms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 128, 最近一次更新时间为 2024 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「css」 「cms」 「minecraft」 「csgo」 「counter strike」 「flute」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 flute-cms/cms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 flute-cms/cms 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 128
  • Watchers: 1
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-04-10