承接 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.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 41
  • 推荐数: 0

GitHub 信息

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

其他信息

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