/composer

Manages PHP Composer dependencies inside the TYPO3 Docker container.

Usage

/composer --add <package>
/composer --remove <package>
/composer --update

Parameters

Parameter Required Description
--add <package> Add a new Composer package
--remove <package> Remove a Composer package
--update Update all Composer dependencies

Exactly one of these must be provided.

What It Does

Adding a Package (--add)

  1. Resolves the package name — if you use a colloquial name (e.g. typo3 scheduler), it searches the Packagist API and resolves it to typo3/cms-scheduler
  2. Runs composer require inside the TYPO3 Docker container
  3. Copies filescomposer.json, composer.lock, and vendor/ from the container to the host (for IDE support)
  4. Rebuilds the Docker image and restarts the container
  5. Verifies the package was added

Removing a Package (--remove)

Same flow as adding, but runs composer remove instead.

Updating All Dependencies (--update)

Runs composer update in the container, copies files, rebuilds, and shows a summary of updated packages.

Package Name Resolution

Input Resolved To
typo3/cms-scheduler Used directly
typo3 scheduler Searched on Packagist → typo3/cms-scheduler
scheduler Searched and suggested matches

Examples

/composer --add typo3 scheduler       # Resolves to typo3/cms-scheduler
/composer --add guzzlehttp/guzzle     # Used directly
/composer --remove typo3/cms-scheduler
/composer --update

Prerequisites

  • Docker containers must be running (docker compose up -d)