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 | bashIf 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 | bashcurl -fsSL https://tryphp.dev/8.1/install.sh | bashcurl -fsSL https://tryphp.dev/8.2/install.sh | bashcurl -fsSL https://tryphp.dev/8.3/install.sh | bashYou 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 | bashFor 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 security@tryphp.dev 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.
