filaforge/filament-system-tools 问题修复 & 功能扩展

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

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

filaforge/filament-system-tools

Composer 安装命令:

composer require filaforge/filament-system-tools

包简介

System tools plugin

README 文档

README

A powerful Filament plugin that provides essential system administration tools directly in your admin panel.

Features

  • System Information: Comprehensive system details and specifications
  • Process Management: View, monitor, and manage system processes
  • Service Control: Start, stop, and manage system services
  • File Management: Browse and manage system files and directories
  • Network Tools: Network configuration and monitoring tools
  • Log Viewer: View and analyze system logs
  • Performance Monitoring: Real-time system performance metrics
  • User Management: System user and group management
  • Backup Tools: System backup and restore utilities
  • Maintenance Tasks: System maintenance and optimization tools

Installation

1. Install via Composer

composer require filaforge/system-tools

2. Publish & Migrate

# Publish provider groups (config, views, migrations)
php artisan vendor:publish --provider="Filaforge\\SystemTools\\Providers\\SystemToolsServiceProvider"

# Run migrations
php artisan migrate

3. Register Plugin

Add the plugin to your Filament panel provider:

use Filament\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configuration
        ->plugin(\Filaforge\SystemTools\SystemToolsPlugin::make());
}

Setup

Prerequisites

Before using this plugin, ensure your system meets these requirements:

  • Linux/Unix System: Compatible operating system
  • System Permissions: Appropriate permissions for system operations
  • Sudo Access: Sudo access for administrative operations
  • Required Tools: Essential system utilities installed

Configuration

The plugin will automatically:

  • Publish configuration files to config/system-tools.php
  • Publish view files to resources/views/vendor/system-tools/
  • Publish migration files to database/migrations/
  • Register necessary routes and middleware

Tools Configuration

Configure the system tools in the published config file:

// config/system-tools.php
return [
    'enabled' => env('SYSTEM_TOOLS_ENABLED', true),
    'allowed_tools' => [
        'system_info' => true,
        'process_management' => true,
        'service_control' => true,
        'file_management' => true,
        'network_tools' => true,
        'log_viewer' => true,
        'performance_monitoring' => true,
        'user_management' => true,
        'backup_tools' => true,
        'maintenance_tasks' => true,
    ],
    'restricted_directories' => [
        '/etc', '/var/log', '/home', '/root'
    ],
    'allowed_commands' => [
        'ps', 'top', 'htop', 'systemctl', 'service',
        'ls', 'cat', 'tail', 'head', 'grep'
    ],
    'log_retention_days' => env('SYSTEM_TOOLS_LOG_RETENTION', 30),
    'max_processes' => env('SYSTEM_TOOLS_MAX_PROCESSES', 100),
];

Environment Variables

Add these to your .env file:

SYSTEM_TOOLS_ENABLED=true
SYSTEM_TOOLS_LOG_RETENTION=30
SYSTEM_TOOLS_MAX_PROCESSES=100

Usage

Accessing System Tools

  1. Navigate to your Filament admin panel
  2. Look for the "System Tools" menu item
  3. Choose the tool you want to use

Available Tools

System Information

  • System Overview: OS details, kernel version, architecture
  • Hardware Info: CPU, memory, disk, network specifications
  • System Status: Uptime, load average, resource usage

Process Management

  • Process List: View all running processes
  • Process Details: Detailed process information
  • Process Control: Start, stop, and manage processes
  • Resource Monitoring: Monitor process resource usage

Service Control

  • Service Status: Check service status and health
  • Service Control: Start, stop, restart services
  • Service Configuration: View and edit service configurations
  • Service Logs: View service-specific logs

File Management

  • File Browser: Navigate system directories
  • File Operations: View, edit, copy, move, delete files
  • File Permissions: Manage file and directory permissions
  • File Search: Search for files and content

Network Tools

  • Network Status: View network interfaces and status
  • Network Configuration: Configure network settings
  • Connection Monitoring: Monitor network connections
  • Network Diagnostics: Network troubleshooting tools

Log Viewer

  • System Logs: View system and application logs
  • Log Filtering: Filter logs by date, level, and source
  • Log Search: Search for specific log entries
  • Log Analysis: Analyze log patterns and trends

Performance Monitoring

  • Real-time Metrics: Live system performance data
  • Resource Usage: CPU, memory, disk, network usage
  • Performance Trends: Historical performance data
  • Alert System: Performance threshold alerts

User Management

  • User List: View system users and groups
  • User Operations: Create, modify, delete users
  • Permission Management: Manage user permissions
  • User Activity: Monitor user activity and sessions

Backup Tools

  • System Backup: Create system backups
  • Backup Management: Manage backup schedules and retention
  • Restore Operations: Restore from backups
  • Backup Verification: Verify backup integrity

Maintenance Tasks

  • System Updates: Check and apply system updates
  • Package Management: Manage system packages
  • Cleanup Tasks: System cleanup and optimization
  • Health Checks: System health diagnostics

Troubleshooting

Common Issues

  • Permission denied: Ensure the user has appropriate system access
  • Tool not available: Check if the tool is enabled in configuration
  • Command failures: Verify system utilities are installed
  • Performance impact: Monitor tool resource usage

Debug Steps

  1. Check the plugin configuration:
php artisan config:show system-tools
  1. Verify routes are registered:
php artisan route:list | grep system-tools
  1. Check system permissions:
# Verify the web server user has system access
sudo -l
whoami
groups
  1. Test basic system tools:
# Test if basic commands work
ps aux | head -10
systemctl status
  1. Clear caches:
php artisan optimize:clear
  1. Check logs for errors:
tail -f storage/logs/laravel.log

Tool-Specific Issues

Process Management

  • High process count: Adjust max_processes setting
  • Permission errors: Check user permissions for process operations
  • Performance issues: Optimize process listing and filtering

File Management

  • Access denied: Check directory permissions and restrictions
  • Large directories: Implement pagination for large directory listings
  • File operations: Verify file operation permissions

Service Control

  • Service not found: Check if service exists and is accessible
  • Permission denied: Verify sudo access for service operations
  • Service failures: Check service logs and dependencies

Security Considerations

Access Control

  • Role-based permissions: Restrict tool access to authorized users only
  • Tool restrictions: Limit available tools based on user roles
  • Directory restrictions: Restrict access to sensitive directories
  • Command restrictions: Whitelist allowed system commands

Best Practices

  • Never expose system tools to public users
  • Regularly review and update access permissions
  • Monitor tool usage and log suspicious activities
  • Implement proper user authentication and authorization
  • Use HTTPS for secure access
  • Regular security audits of tool access

System Security

  • File permissions: Ensure proper file and directory permissions
  • User isolation: Limit user access to necessary tools only
  • Audit logging: Track all system tool activities
  • Backup security: Secure backup files and access

Performance Optimization

System Requirements

  • CPU: Sufficient CPU for tool operations
  • Memory: Adequate RAM for tool execution
  • Storage: Fast storage for file operations
  • Network: Stable network for network tools

Optimization Tips

  • Implement caching for frequently accessed data
  • Use pagination for large data sets
  • Optimize database queries and operations
  • Monitor tool performance and resource usage

Uninstall

1. Remove Plugin Registration

Remove the plugin from your panel provider:

// remove ->plugin(\Filaforge\SystemTools\SystemToolsPlugin::make())

2. Roll Back Migrations (Optional)

php artisan migrate:rollback
# or roll back specific published files if needed

3. Remove Published Assets (Optional)

rm -f config/system-tools.php
rm -rf resources/views/vendor/system-tools

4. Remove Package and Clear Caches

composer remove filaforge/system-tools
php artisan optimize:clear

5. Clean Up Environment Variables

Remove these from your .env file:

SYSTEM_TOOLS_ENABLED=true
SYSTEM_TOOLS_LOG_RETENTION=30
SYSTEM_TOOLS_MAX_PROCESSES=100

6. Security Cleanup

After uninstalling, consider:

  • Reviewing system access permissions
  • Cleaning up any custom tool configurations
  • Removing any scheduled tasks or cron jobs
  • Updating system security settings

Support

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This plugin is open-sourced software licensed under the MIT license.

Made with ❤️ by the Filaforge Team

filaforge/filament-system-tools 适用场景与选型建议

filaforge/filament-system-tools 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 08 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 filaforge/filament-system-tools 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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