PHP
Attlaz PHP projects are built on top of attlaz/project-base and run on the Attlaz PHP platform images.
You can use a locally installed PHP and Composer, but the Attlaz Docker images give you the exact runtime your project runs on in production. Pick the image tag that matches the PHP version in your project's composer.json.
The current attlaz/project-base and attlaz/adapter-base require PHP 8.4 or newer. Use the matching platform image (attlaz/php:8.4).
Create a project
The fastest way to start is from the Attlaz skeleton. It scaffolds a ready-to-run project already wired to attlaz/project-base:
docker run -it -v ${PWD}:/app -w /app --rm attlaz/php:8.4 composer create-project attlaz/skeleton .
Manual setup
Prefer to start from scratch? Initialise a Composer project and add the base package yourself:
docker run -it -v ${PWD}:/app -w /app --rm attlaz/php:8.4 composer init
docker run -it -v ${PWD}:/app -w /app --rm attlaz/php:8.4 composer require attlaz/project-base
Install
Install the project's dependencies (for example after cloning it or pulling changes):
docker run -it -v ${PWD}:/app -w /app --rm attlaz/php:8.4 composer install
Update
Update your dependencies to the latest versions allowed by your composer.json constraints:
docker run -it -v ${PWD}:/app -w /app --rm attlaz/php:8.4 composer update
Always run these commands with the image tag matching your project's PHP version — see available images.