定制 ibexa/code-style 二次开发

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

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

ibexa/code-style

最新稳定版本:v2.2.0

Composer 安装命令:

composer require ibexa/code-style

包简介

Ibexa Code Style Fixer

README 文档

README

This package contains Ibexa Coding Standards which are aimed to include plugins
for code style tools, plugins for CI, IDE settings, Git hooks, GitHub templates related
to contributions, etc.

Installation and backward compatibility promise

This package doesn't follow strict SemVer BC promise due to maintenance reasons. Backward compatibility is guaranteed within a single minor release, instead of a major one.

We recommend installing it using tilde (~) composer constraint followed by X.Y.Z version number format, e.g.:

composer req --dev ibexa/code-style:~2.2.0

This ensures that composer will install v2.2.* patch releases only. Minor releases might receive configuration updates either needed by Ibexa DXP packages or other changes forced by PHP CS Fixer package itself.

Usage

Third party packages

Create a .php-cs-fixer.php file in your project root directory with the following content:

<?php

$factory = new Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory();

// You can omit the call below if you want Ibexa ruleset with no custom rules
$factory->withRules([
    // Your rules go here
]);
$config = $factory->buildConfig();
$config->setFinder(
    PhpCsFixer\Finder::create()
        ->in(__DIR__ . '/src')
        ->in(__DIR__ . '/tests')
        ->files()->name('*.php')
);

return $config;

Tip

You can configure a parallel run of PHP CS Fixer by either calling:

$factory->runInParallel();

or

InternalConfigFactory::build(runInParallel: true)

Ibexa packages

Create a .php-cs-fixer.php file in your project root directory with the following content:

<?php

return Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory::build()
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->in(__DIR__ . '/src')
            ->in(__DIR__ . '/tests')
            ->files()->name('*.php')
    )
;

FAQ

See FAQ for common questions about contributing to Ibexa-related packages.

COPYRIGHT

Copyright (C) 1999-2025 Ibexa AS (formerly eZ Systems AS). All rights reserved.

LICENSE

This source code is available separately under the following licenses:

A - Ibexa Business Use License Agreement (Ibexa BUL), version 2.4 or later versions (as license terms may be updated from time to time) Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription, as described at: https://www.ibexa.co/product For the full Ibexa BUL license text, please see:

AND

B - GNU General Public License, version 2 Grants an copyleft open source license with ABSOLUTELY NO WARRANTY. For the full GPL license text, please see:

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: (GPL-2.0-only or proprietary) 507cfcf2a4f0cc4b6cc9b43fdfb848b8327341f4
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固