BCD

Command-line tools › P

Run php from ChatGPT or Claude

General-purpose scripting language. With BCD, ChatGPT, Claude and other AI apps can install and run php on your own computer and read what it prints.

Works on

About php

Version
8.5.12
License
PHP-3.01 AND Zend-2.0 AND BSL-1.0 AND MIT AND Apache-1.0 AND Apache-2.0 AND bcry
Installs (last 365 days)
297,770 · #64 in Homebrew
Homepage
www.php.net
Install
brew install php

Try asking

“Install php with Homebrew and show me its version”
“Read php --help and give me three useful examples for my files”
“Update php and tell me what changed”

Depends on

apr · apr-util · argon2 · autoconf · curl · freetds · gd · gmp · icu4c@79 · libpq · libsodium · libzip · net-snmp · oniguruma · openldap · openssl@4 · pcre2 · sqlite · tidy-html5 · unixodbc · gettext

Used by

composer · php-cs-fixer · wp-cli · pie · php-code-sniffer · joern · psalm · psysh

Questions

Can ChatGPT run php on my computer?
Yes. With BCD on your Mac or Linux computer and command permission turned on for it, ChatGPT runs php there and reads the output. Claude and other apps with MCP connectors can too.

Do I need to install php first?
No. If Homebrew is installed, the AI can run brew install php for you.

Is it safe?
A new computer starts read-only: running commands is turned on per computer, and BCD reaches only the folders you allow.

Try it on your computer

BCD connects ChatGPT, Claude and other AI apps to your own Mac, Windows or Linux computer. One computer is free, with 20,000 tool calls a month and no card.

Program data from Homebrew, updated 2026-11-11. Installs are Homebrew's installs on request over the last 365 days.