---
title: "composer"
canonical_url: "https://www.zone.lv/help/kb/composer-3/"
post_type: "ht_kb"
published: "2024-04-03T14:14:51+00:00"
modified: "2024-04-03T14:14:51+00:00"
language: "en"
author: "silver"
taxonomies:
  ht_kb_category:
    - name: "Technical"
      url: "https://www.zone.lv/help/kb-categories/technical-en/"
  ht_kb_tag:
    - name: "composer"
      url: "https://www.zone.lv/help/kb-tags/composer-en/"
---

# composer

## Using Composer v1

The ZoneOS platform uses composer version 2.x by default. However, some older plugins may require the first version of composer.

Composer v1 can be installed on a virtual server using the following command:

```
mkdir -p ~/bin && cd ~/bin && wget https://getcomposer.org/composer-1.phar && mv composer-1.phar composer && chmod +x composer && hash -r
```

Now `composer -V` shows: `Composer version 1.x`

If you want to use the default composer on the server again, you need to remove composer from the `~/bin` directory:

```
rm -f ~/bin/composer

```

## Changing the version of the self-installed Composer

If composer is already installed on the virtual server, you can easily change its version with the following command. The command to change to version 2.x:

```
composer self-update --2
```

Command to return to version 1:

```
composer self-update --1
```
