# Using PHP, composer and WP-CLI

Your server is fully equipped to perform current PHP opérations from the command line:

### PHP

PHP is ready to use, it can be invoked via the **php** command. The version installed on 01/10/2023 is 8.1.

```
> php -v
    PHP 8.1.25 (cli) (built: Oct 27 2023 11:17:49) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.25, Copyright (c) Zend Technologies
      with the ionCube PHP Loader v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.
      with Zend OPcache v8.1.25, Copyright (c), by Zend Technologies
```

If you want to use another version of PHP, you will find them in the following paths:

```
/opt/plesk/php/8.0/bin/php
/opt/plesk/php/8.1/bin/php
/opt/plesk/php/8.2/bin/php
```

<p class="callout info">Please note that available PHP versions on Hosterra servers evolve over time. We systematically remove any old version that is no longer being [maintained for security](https://www.php.net/supported-versions.php) by The PHP Group. We add any new version as soon as it is available.</p>

### Composer

Composer is also ready to use via the **composer** command.

```
> composer -V
    Composer version 2.6.5 2023-10-06 10:11:52
```

<p class="callout info">Note that the composer version available on Hosterra servers is always the most recent version.</p>

### WP-CLI

WP-CLI is also ready to use via the **wp** command.

```
> wp cli version
    WP-CLI 2.9.0
```

<p class="callout info">Note that the version of WP-CLI available on Hosterra servers is always the most recent version.</p>