Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Manage dev tool binaries with Phive instead of Composer

Offen
#23 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
php

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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?
Vorherrschende Sprache
PHP
Sterne
20
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus openapi/openapi-php-sdk

Alle Issues in openapi/openapi-php-sdk

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.