Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Manage dev tool binaries with Phive instead of Composer

Đang mở
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
php
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Start by reviewing composer.json to identify the development tools currently listed in require-dev, then check the project’s CI configuration and contributor setup for how those tools are installed and run. Compare that flow with the proposed .phive/phars.xml and Phive install command. Done means the tools run in CI and locally without conflicting with dependencies of projects that install the SDK, with the GPG trust and fallback questions resolved.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement question

Background

Dev tools like PHPUnit, PHPStan and PHPCS are currently in require-dev inside composer.json. This couples the project's dependency graph to tooling versions and can cause conflicts when the SDK is installed in a host project.

Proposal: use Phive

Phive installs tools as standalone PHAR files, isolated from the project's Composer dependencies.

A .phive/phars.xml would look like:

<?xml version="1.0"?>
<phive xmlns="https://phar.io/phive">
    <phar name="phpunit" version="^9.5" installed="9.6.34" location="./tools/phpunit" copy="false"/>
    <phar name="phpstan" version="^1.10" installed="1.10.0" location="./tools/phpstan" copy="false"/>
    <phar name="phpcs" version="^3.7" installed="3.7.2" location="./tools/phpcs" copy="false"/>
</phive>

Then in CI: phive install --trust-gpg-keys ...

Open questions

  • Is this change worth the added complexity for contributors unfamiliar with Phive?
  • Should we keep a require-dev fallback for environments without Phive?
  • How do we handle GPG key trust in CI?
Ngôn ngữ chính
PHP
Star
20
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapi/openapi-php-sdk

Tất cả issue của openapi/openapi-php-sdk

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.