Feature Request: Add Composer Repository Support for PHP Packages

オープン
#8,360 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php, python
領域
backend

調査の方向性

The issue proposes a dedicated pulp_composer plugin but names no files, tests, or implementation entry points. First read the pulpcore plugin development documentation and inspect existing package plugins to understand the required repository, remote, metadata, and distribution patterns. Done would mean a Composer-compatible plugin supports private packages and remote synchronization, with metadata and endpoints that work with the shown Composer commands.

索引モデルが issue の本文から書いたものです。

説明

Feature Triage-Needed

Feature Request: Add Composer Repository Support for PHP Packages

Description

I would like to propose adding support for PHP Composer repositories to Pulp through a dedicated plugin, tentatively named pulp_composer.

Composer is the standard dependency manager for PHP, and having native Composer repository support in Pulp would make it possible to manage PHP packages alongside the other package formats already supported by the Pulp ecosystem.

Motivation

Currently, Pulp provides support for several package management ecosystems, but there is no dedicated plugin for managing Composer repositories.

Organizations using Pulp as their centralized artifact repository would benefit from being able to manage their PHP dependencies through the same platform and infrastructure.

This would be particularly useful for organizations that need to:

  • Host private PHP packages and libraries.
  • Proxy and cache packages from Packagist.
  • Mirror external Composer repositories.
  • Manage internal and external PHP dependencies centrally.
  • Control package versions and promote packages across different environments.
  • Reduce dependency on external package repositories.

Proposed Features

A dedicated pulp_composer plugin could provide the following capabilities:

  • Repository management: Create and manage Composer-compatible repositories.
  • Package upload: Upload private PHP packages to Pulp.
  • Remote synchronization: Synchronize packages from Packagist and other Composer repositories.
  • Metadata management: Generate and serve Composer-compatible metadata (packages.json and related metadata files).
  • Package versioning: Manage multiple versions of the same PHP package.
  • Dependency information: Preserve package metadata, including dependencies, requirements and autoload configuration.
  • Distribution: Publish repositories through Pulp distributions using a standard Composer-compatible endpoint.

Expected Usage

The goal would be to allow developers to configure Pulp as a regular Composer repository:

composer config repositories.pulp composer https://pulp.example.com/pulp/content/php/
composer require my-company/my-library

Ideally, Pulp would support both private package hosting and remote repository synchronization, making it possible to use it as a centralized Composer repository manager.

Benefits to the Pulp Ecosystem

Adding Composer support would extend Pulp's capabilities to the PHP ecosystem and make it an even more comprehensive solution for organizations managing software artifacts across multiple technology stacks.

It would also provide a consistent approach to artifact management for organizations already using Pulp for RPM, Debian, Python or other supported ecosystems.

Discussion

I would be interested in knowing whether this feature is already being considered, whether there are any technical limitations that would make its implementation difficult, and whether the community would be interested in contributing to such a plugin.

I would also be happy to participate in the discussion and help with testing or development if there is interest in moving forward with this proposal.

Thank you for considering this feature request!

主要言語
Python
スター
641
フォーク
178
平均マージ
17時間 36分
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pulp/pulpcore のほかの issue

pulp/pulpcore の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。