Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Created June 9, 2023 19:09
Show Gist options
  • Save xurizaemon/4b30f525b555c4c2399cac7bdfe08ad5 to your computer and use it in GitHub Desktop.
Save xurizaemon/4b30f525b555c4c2399cac7bdfe08ad5 to your computer and use it in GitHub Desktop.
lando CLI PHP with xdebug
name: whatever
env_file:
- .env
services:
php:
type: php:8.2
via: cli
overrides:
environment:
# Re-use Composer cache between projects.
COMPOSER_HOME: /user/.composer
xdebug: develop,debug
tooling:
composer:
service: php
description: Run Composer in container
whatever:
service: php
description: Run Whatever in container
command: php ./bin/whatever
php:
service: php
description: Run PHP in container
phpunit:
service: php
description: Run PhpUnit in container
command: ./vendor/bin/phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment