Docker (e.g. using OrbStack on Mac)
System PHP
️ quick install:
brew install shivammathur/php/php@8.4 brew install shivammathur/extensions/xdebug@8.4
brew install symfony-cli/tap/symfony-cli
docker compose up -d
symfony serve
$ symfony serve [WARNING] The local web server is optimized for local development and MUST never be used in a production setup. [WARNING] Please note that the Symfony CLI only listens on 127.0.0.1 by default since version 5.10.3. You can use the --allow-all-ip or --listen-ip flags to change this behavior. [OK] Web server listening The Web server is using PHP FPM 8.4.3 https://127.0.0.1:8078 Stream the logs via symfony server:log
symfony server:log
brew services symfony-cli start
symfony local:server:ca:install
→ setup proxy!
Config file: .symfony.local.yaml
.symfony.local.yaml
proxy: domains: - shop http: daemon: true use_gzip: true port: 8078
To set up a different proxy TLD than .wip
.wip
symfony local:proxy:tld <tld>
Create a .php.ini-file in your project and set options
.php.ini
upload_max_filesize = 256M memory_limit = 2G
Create a .php-version file with the required PHP version
.php-version
... workers: messenger_consume_async: ~
Just runs the messenger:consume command in the background (restarting when failed)
messenger:consume
proxy: domains: - *.shop
Configures *.shop.wip to be reachable - useful for multiple sales-channels
*.shop.wip
xdebug.mode = debug
symfony var:export --debug
docker-compose
compose.override.yaml
https_proxy=$(symfony proxy:url) curl abc.wip/