ibexa/code-style
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:
- LICENSE-bul file placed in the root of this source code, or
- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies)
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:
- LICENSE file placed in the root of this source code, or
- https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
ibexa/code-style 适用场景与选型建议
ibexa/code-style 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 607.63k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 11 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ibexa/code-style 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ibexa/code-style 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 607.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 50
- 推荐数: 0
其他信息
- 授权协议: (GPL-2.0-only or proprietary) d5872f9cb1bd24f8ed37a629727b9e1d92c08615
- 更新时间: 2021-11-30