Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Manage dev tool binaries with Phive instead of Composer

Aperta
#23 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
php

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?
Lingua principale
PHP
Stelle
20
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openapi/openapi-php-sdk

Tutte le issue di openapi/openapi-php-sdk

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.