PHP versions
Burrow installs self-contained PHP builds, so they don't conflict with any PHP from your distribution. PHP 8.1 to 8.5 are available.
Install and remove#
Open PHP in the app. Available lists the versions you can install, Installed what you have. Or:
burrow php available
burrow php install 8.4
burrow php remove 8.3
Each installed version runs its own PHP-FPM. The PHP-FPM column shows its state:
- idle: not running yet. It starts by itself on the first request, so you don't need to do anything.
- running: serving requests. Restart reloads its extensions and
php.ini; Stop ends it until the next request.
Press Start to start an idle PHP-FPM ahead of time.
The default version#
Sites without their own version use the default. Set it on the PHP page, from the tray menu (Default PHP), or by giving one site a fixed version on its General tab.
In your terminal, php follows the same rules: the version of the site you're in (or a .php-version file), otherwise the default.
Updates and security fixes#
Burrow checks in the background (shortly after it starts, then every six hours) for:
- newer PHP builds for the versions you have, and
- security fixes (CVE and GitHub advisories) that php.net has released since your installed version.
When something is found, an orange dot appears next to PHP in the app and a line appears in the tray menu. The PHP page shows:
- an Update to x.y.z button next to the version when a newer build is available, and
- a Security panel for each version: how many security fixes were released since yours, an Update to x.y.z button when a build with them exists, and Show CVEs to list each fix with a link to its advisory. Check now checks php.net again.
From a terminal:
burrow php security # fixes since your installed versions
burrow php install 8.4 # updates 8.4 to the newest build
Extensions and settings#
Burrow's builds include the extensions Laravel apps commonly need: bcmath, bz2, calendar, ctype, curl, dom, exif, fileinfo, filter, ftp, gd, gmp, iconv, intl, mbstring, mongodb, mysqli, opcache, openssl, pcntl, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, phar, posix, redis, session, simplexml, soap, sockets, sodium, sqlite3, tokenizer, xml, xmlreader, xmlwriter, zip and zlib.
PHP 8.2 and newer also come with Xdebug, which is only loaded for the sites you turn it on for.
Press Extensions next to a version to see what that build includes. If it says the build has no intl, it is an older build: press Reinstall PHP 8.x to get a current one.
Burrow writes its own php.ini with development-friendly limits (memory_limit 512M, uploads up to 100M) and points PHP at your system's trusted certificates, so HTTPS calls from your app work. To change these limits for one site, use its PHP settings.
burrow php verify checks that the installed PHP files haven't changed since they were installed. It checks every installed version, or one with burrow php verify 8.4.