承接 openfinancy/admin-menu-component 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

openfinancy/admin-menu-component

Composer 安装命令:

composer require openfinancy/admin-menu-component

包简介

Composite-based admin menu building blocks shared across OpenFinancy projects.

README 文档

README

CI

Composite-based menu primitives shared across the OpenFinancy Symfony services. The package exposes lightweight tree objects (MenuGroup, MenuLink, etc.) under the OpenFinancy\Component\AdminMenu namespace so each project can render consistent administration navigation without re-implementing the pattern.

Installation

composer require openfinancy/admin-menu-component:^0.1

The component targets PHP 8.4+ and contains no Symfony-specific dependencies, making it reusable in any PHP application that relies on composite menu trees.

Key Features

  • MenuComponent interface and AbstractMenuComponent base class implementing the composite pattern.
  • Concrete MenuGroup and MenuLink types for hierarchical navigation structures.
  • Immutable value objects with typed children for simple serialisation or templating.
  • Thorough PHPUnit coverage to ensure behaviour remains stable across projects.

Usage

use OpenFinancy\Component\AdminMenu\MenuGroup;
use OpenFinancy\Component\AdminMenu\MenuLink;

$menu = [
    new MenuGroup('Dashboard', 'bi bi-speedometer2', [
        new MenuLink('Overview', 'bi bi-graph-up', 'admin_dashboard'),
        new MenuLink('Health', 'bi bi-heart-pulse', 'admin_health'),
    ]),
    new MenuGroup('Configuration', 'bi bi-sliders', [
        new MenuLink('Service Settings', 'bi bi-gear', 'admin_service_configuration'),
    ]),
];

Render the resulting structure using Twig, Blade, or your templating engine of choice.

Development

Run the bundled Composer scripts before submitting changes:

composer test
composer analyse
composer lint

The scripts execute PHPUnit, PHPStan and PHP-CS-Fixer respectively.

Documentation

  • CHANGELOG.md tracks release history.
  • The tests/ directory demonstrates expected behaviour.

License

Distributed under the European Union Public Licence v1.2 (EUPL-1.2). See the LICENSE file for the full text.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: EUPL-1.2
  • 更新时间: 2025-11-11