/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)
- Resolves the package name — if you use a colloquial name (e.g.
typo3 scheduler), it searches the Packagist API and resolves it totypo3/cms-scheduler - Runs
composer requireinside the TYPO3 Docker container - Copies files —
composer.json,composer.lock, andvendor/from the container to the host (for IDE support) - Rebuilds the Docker image and restarts the container
- 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)