Skip to content

Effortlessly set up PHP on Linux with a simple curl command

License

Notifications You must be signed in to change notification settings

mhdcodes/tryphp

Repository files navigation

Try PHP

TryPHP's logo



License: MIT PRs Welcome

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

⚡️ Quick Start

Install the latest version of PHP with this simple command:

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:

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

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

PHP8.1

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

PHP8.2

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

PHP8.3

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

curl -fsSL https://tryphp.dev/presets/laravel | bash

📚 Documentation

For detailed information about features, configuration, and troubleshooting, visit our comprehensive documentation.

🤝 Contributing

We welcome contributions! Whether it's:

  • Reporting bugs
  • Suggesting new features
  • Improving documentation
  • Submitting pull requests

Check our Contributing Guidelines for more information.

🔐 Security

TryPHP takes security seriously. If you discover any security-related issues, please email security@tryphp.dev instead of using the issue tracker.

📝 License

TryPHP is open-sourced software licensed under the MIT license.

💖 Support

If you find TryPHP helpful, please consider:

🙏 Acknowledgments

Special thanks to all our contributors and the PHP community for their continued support and feedback.