An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Try PHP

TryPHP's logo


[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](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 requests

Check 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.