# Enabling php 8.x CLI and composer

**URL:** https://forum.builder.io/t/enabling-php-8-x-cli-and-composer/15796
**Category:** FUSION
**Created:** [September 25, 2025, 5:47am UTC](https://forum.builder.io/t/enabling-php-8-x-cli-and-composer/15796 "2025-09-25T05:47:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Santos](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Santos](https://forum.builder.io/u/Santos)
#### Post date: [September 25, 2025, 5:47am UTC](https://forum.builder.io/t/enabling-php-8-x-cli-and-composer/15796/1 "2025-09-25T05:47:07Z")

</div>

Please Help enable php 8.x CLI and composer

---

<div class="post-metadata">

### Author: ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)
#### Post date: [September 25, 2025, 3:32pm UTC](https://forum.builder.io/t/enabling-php-8-x-cli-and-composer/15796/2 "2025-09-25T15:32:42Z")

</div>

Hello @Santos,

To enable PHP 8.x CLI and use Composer, follow these steps:

**1. Install PHP 8.x**

- **Windows:** Download PHP 8.x from [php.net](https://www.php.net/downloads) and add it to your system PATH.

- **Linux (Ubuntu/Debian):**

```bash
sudo apt update
sudo apt install php8.1-cli php8.1-mbstring php8.1-xml php8.1-curl

```

**2. Verify PHP version:**

```bash
php -v

```

**3. Install Composer (if not installed):**

- **Windows:** Download Composer and follow the installer.

- **Linux:**

```bash
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
sudo mv composer.phar /usr/local/bin/composer

```

**4. Verify Composer version:**

```bash
composer -V

```

After this, PHP 8.x will be active in the CLI and Composer will use it automatically.

If you see an older PHP version, make sure the PATH points to PHP 8.x.

If the issue still persist, feel free to share more information.

Best regards,
