Skip to content

Latest commit

 

History

History
102 lines (69 loc) · 2.24 KB

File metadata and controls

102 lines (69 loc) · 2.24 KB

PHP and Symfony

The full profile installs the PHP runtime used by local Symfony projects:

  • php for the Homebrew-managed PHP runtime;
  • composer for PHP dependencies;
  • symfony-cli/tap/symfony-cli for Symfony local tooling.

Project dependencies, quality tools, and test tools should live in each project's composer.json. This repository installs the shared runtime only.

Homebrew PHP runtime version output

Installation

Install the full profile:

mac setup --profile full

Or install the tools directly:

brew install php composer
brew install symfony-cli/tap/symfony-cli

Validation

Check the runtime:

php --version
php --ini
composer --version
symfony version

The mac php helper also checks the local Xdebug state without requiring you to inspect PHP configuration files manually:

mac php xdebug status showing a disabled config with the extension installed

Check that Composer can inspect the local platform:

composer check-platform-reqs

Run the Symfony local server from a project directory:

symfony serve

Stop local Symfony services when finished:

symfony server:stop

Project boundary

Keep these decisions inside each PHP project:

  • framework version;
  • Composer dependencies;
  • test runner;
  • static analysis level;
  • coding standard;
  • Rector rules;
  • Xdebug and PCOV activation.

Use repository-level Homebrew only for tools that must exist before a project is cloned or bootstrapped.

Toolchain guides

Use the focused guides for project-level decisions:

Rollback

Remove the shared runtime tools:

brew uninstall symfony-cli
brew uninstall composer php

Project dependencies remain in each project's vendor/ directory and lock file.


← Docs index · Project README