Effortlessly set up PHP on Linux with a simple curl
command 🚀.
Install the latest version of PHP with this simple command:
curl -fsSL https://tryphp.dev/install.sh | bash
- 🔄 Install and switch between multiple PHP versions
- 📦 Automatic Composer installation
- 🧩 Automatic PHP extensions installation
- 🛠️ Development environment configuration
- 🔒 Secure installation process
- Ubuntu-based operating system
- curl or wget installed
- sudo privileges
The following command will automatically download and install the latest stable version of PHP:
curl -fsSL https://tryphp.dev/install.sh | bash
If you need a specific PHP version, use one of the commands below. This is helpful when compatibility with specific frameworks or projects requires an older PHP version.
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
You can install PHP with tailored presets for different frameworks or applications. For example, the Laravel preset will install PHP with all extensions required to run a Laravel application.
curl -fsSL https://tryphp.dev/presets/laravel | bash
For detailed information about features, configuration, and troubleshooting, visit our comprehensive documentation.
We welcome contributions! Whether it's:
- Reporting bugs
- Suggesting new features
- Improving documentation
- Submitting pull requests
Check our Contributing Guidelines for more information.
TryPHP takes security seriously. If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
TryPHP is open-sourced software licensed under the MIT license.
If you find TryPHP helpful, please consider:
- Starring the repository
- Sharing it with others
- Sponsoring the project
Special thanks to all our contributors and the PHP community for their continued support and feedback.