composer

package
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package composer provides utility functions for installing PHP packages via Composer.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingRepo indicates that a repository URL is missing for a Composer tool.
	ErrMissingRepo = errors.New("repo URL missing")

	// ErrInvalidTool indicates that a Composer tool configuration is invalid.
	ErrInvalidTool = errors.New("invalid tool configuration")
)

Functions

func Install

func Install(ctx context.Context, tools []*config.ComposerTool, phpPath, bin string) error

Install installs a list of Composer tools into the environment. It also installs dependencies for the PHP project if a local_path tool (like "dev") is provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL