Feature Request: Add Composer Repository Support for PHP Packages

Abierto
#8,360 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php, python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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!

Lenguaje dominante
Python
Estrellas
641
Forks
178
Merge medio
17 h 36 min
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pulp/pulpcore

Todos los issues de pulp/pulpcore

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.