Skip to content

PHP Composer: Serve package files for package installation

Problem to solve

PHP Developers need a way to install their PHP packages ensure their code builds and runs properly and with all of their dependencies.

Proposal

Implement the endpoints needed to support PHP composer package installation.

Endpoints

Endpoint Description Params
GET /api/v4/group/:id/-/packages/composer/packages.json Group level endpoint for getting the list of package providers (paginated packages). For the MVP it can return a single provider which will contain all packages in the group. For future versions it could provide a list of providers for the sake of pagination. None
GET /api/v4/group/:id/-/packages/composer/p/:sha.json Group level list of packages. Should return the list of packages in group. sha: The SHA256 of the json file being returned
GET /api/v4/group/:id/-/packages/composer/*package_name.json Package metadata endpoint containing the package versions and other info. package_name: The package name. sha: The SHA256 of the output json
Edited by Tim Rizzi