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
- π Install and switch between multiple PHP versions
- π¦ Automatic Composer installation
- 𧩠Automatic PHP extensions installation
- π οΈ Development environment configuration
- π Secure installation process
Custom PHP Versions
You can install custom PHP versions tailored to your needs. This allows flexibility for various projects and environments, ensuring youβre running the right version for your application.
curl -fsSL https://tryphp.dev/7.4/install.sh | bash
Tailored Presets
We also support tailored presets for popular frameworks and applications. For example, the Laravel preset installs PHP with all the necessary extensions to run a Laravel application smoothly.
curl -fsSL https://tryphp.dev/presets/laravel | bash
FAQ
- Does this tool generate scripts at request time that could be altered to harm users? No, all scripts are pre-built to ensure security and integrity.
- Does this tool support other operating systems like Windows or Mac ? Not yet, it's currently Linux-only.
- Does this tool install any affiliated code or packages? No, it's fully open-source. You can review and access the source code directly on our GitHub repository.
- How can I support this project? You can contribute code to our GitHub repository or make a donation.