Effortlessly set up PHP on Linux with a simple curl command 🚀.

Simply run the following command in your terminal to install the latest version of PHP and all its dependencies including composer.

curl -fsSL https://tryphp.dev/install.sh | bash

After running the command above, you should restart your terminal session.

What is TryPHP?

This tool simplifies the often time-consuming task of setting up a PHP environment on Linux. With just a single curl command, you can instantly install the latest PHP version, complete with all required dependencies and Composer. It's perfect for developers and system administrators seeking a fast, efficient setup.

Features

Custom Install

You can install custom php versions or tailored presets for various frameworks and applications. for example, the laravel preset installs php with all the extensions needed to run a laravel application.

curl -fsSL https://tryphp.dev/7.4/install.sh | bash
curl -fsSL https://tryphp.dev/8.1/install.sh | bash
curl -fsSL https://tryphp.dev/8.2/install.sh | bash
curl -fsSL https://tryphp.dev/8.3/install.sh | bash
curl -fsSL https://tryphp.dev/presets/laravel | bash

FAQ