https://github.com/mhdcodes/tryphp
Effortlessly set up PHP on Linux with a simple curl command
https://github.com/mhdcodes/tryphp
composer php php81 php82 php83 php84
Last synced: 19 days ago
JSON representation
Effortlessly set up PHP on Linux with a simple curl command
- Host: GitHub
- URL: https://github.com/mhdcodes/tryphp
- Owner: mhdcodes
- License: mit
- Created: 2024-10-09T13:14:01.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-18T20:12:46.000Z (6 months ago)
- Last Synced: 2025-06-13T19:47:16.731Z (about 1 month ago)
- Topics: composer, php, php81, php82, php83, php84
- Language: Astro
- Homepage: https://tryphp.dev
- Size: 302 KB
- Stars: 33
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Try PHP
![]()
[](https://opensource.org/licenses/MIT)
[](CONTRIBUTING.md)Effortlessly set up PHP on Linux with a simple `curl` command 🚀.
## ⚡️ Quick Start
Install the latest version of PHP with this simple command:
```sh
curl -fsSL https://tryphp.dev/install.sh | bash
```## ✨ Features
- 🔄 Install and switch between multiple PHP versions
- 📦 Automatic Composer installation
- 🧩 Automatic PHP extensions installation
- 🛠️ Development environment configuration
- 🔒 Secure installation process## 🔧 System Requirements
- Ubuntu-based operating system
- curl or wget installed
- sudo privileges## 🚀 Usage
### Installing latest PHP version
The following command will automatically download and install the latest stable version of PHP:
```sh
curl -fsSL https://tryphp.dev/install.sh | bash
```### Installing a specific version of PHP
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.
#### PHP7.4
```sh
curl -fsSL https://tryphp.dev/7.4/install.sh | bash
```#### PHP8.1
```sh
curl -fsSL https://tryphp.dev/8.1/install.sh | bash
```#### PHP8.2
```sh
curl -fsSL https://tryphp.dev/8.2/install.sh | bash
```#### PHP8.3
```sh
curl -fsSL https://tryphp.dev/8.3/install.sh | bash
```### Installing PHP with specific Framework
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.
#### Laravel
```sh
curl -fsSL https://tryphp.dev/presets/laravel | bash
```## 📚 Documentation
For detailed information about features, configuration, and troubleshooting, visit our [comprehensive documentation](https://tryphp.dev).
## 🤝 Contributing
We welcome contributions! Whether it's:
- Reporting bugs
- Suggesting new features
- Improving documentation
- Submitting pull requestsCheck our [Contributing Guidelines](CONTRIBUTING.md) for more information.
## 🔐 Security
TryPHP takes security seriously. If you discover any security-related issues, please email instead of using the issue tracker.
## 📝 License
TryPHP is open-sourced software licensed under the [MIT license](LICENSE).
## 💖 Support
If you find TryPHP helpful, please consider:
- Starring the repository
- Sharing it with others
- [Sponsoring the project](https://github.com/sponsors/mhdcodes)## 🙏 Acknowledgments
Special thanks to all our contributors and the PHP community for their continued support and feedback.