承接 chrisjenkinson/symfony-service-sorter 相关项目开发

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

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

chrisjenkinson/symfony-service-sorter

最新稳定版本:v1.1.0

Composer 安装命令:

composer require chrisjenkinson/symfony-service-sorter

包简介

Sorts entries in the services: key of Symfony YAML files alphabetically

README 文档

README

CLI for checking and fixing service ordering in Symfony services: YAML files.

What it does

symfony-service-sorter helps keep Symfony service definitions in a consistent order. It provides:

  • check to report out-of-order services
  • fix to rewrite a file into the expected order

Installation

Install it as a development dependency:

composer require --dev chrisjenkinson/symfony-service-sorter

The binary is available at vendor/bin/sort-services.

Usage

Run the binary with a subcommand and one or more target YAML files:

vendor/bin/sort-services <command> <path-to-yaml-file>...

Check

vendor/bin/sort-services check config/services.yaml

check exits successfully when services are already in order and reports ordering problems otherwise.

You can also check more than one file in one invocation:

vendor/bin/sort-services check config/services.yaml config/services_test.yaml

Fix

vendor/bin/sort-services fix config/services.yaml

fix rewrites the file in place.

You can also fix more than one file in one invocation:

vendor/bin/sort-services fix config/services.yaml config/services_test.yaml

To print the sorted output instead, use:

vendor/bin/sort-services fix config/services.yaml --stdout

--stdout only supports a single file.

Compatibility

  • PHP ^8.2
  • Symfony Console ^6.0 || ^7.0 || ^8.0

Development

Useful local verification commands:

vendor/bin/phpunit
vendor/bin/ecs check
vendor/bin/phpstan analyse
vendor/bin/infection --threads=max --min-msi=85 --min-covered-msi=85

License

GPL-3.0-or-later

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固