# Slim / Composer is checking wrong version of php

**URL:** <https://discourse.slimframework.com/t/slim-composer-is-checking-wrong-version-of-php/660>\
**Category:** Questions\
**Created:** [August 25, 2016, 3:18pm UTC](https://discourse.slimframework.com/t/slim-composer-is-checking-wrong-version-of-php/660 "2016-08-25T15:18:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edergonsilva](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@edergonsilva](https://discourse.slimframework.com/u/edergonsilva)\
**Post date:** [August 25, 2016, 3:18pm UTC](https://discourse.slimframework.com/t/slim-composer-is-checking-wrong-version-of-php/660/1 "2016-08-25T15:18:55Z")

</div>

Hi,

I 'm trying to install Slim 3 by composer, but the composer returns error in the version of PHP:

- slim/slim 3.5.0 requires php \>=5.5.0 -\> your PHP version (5.4.16) does not satisfy that requirement.

My PHP version is 5.6.18 .

Core:  
PHP Version 5.6.18

Where the composer checks the version ?

Thanks

---

<div class="post-metadata">

**Author:** ![geggleto](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/geggleto/32/11_2.png) [@geggleto](https://discourse.slimframework.com/u/geggleto)\
**Post date:** [August 25, 2016, 3:23pm UTC](https://discourse.slimframework.com/t/slim-composer-is-checking-wrong-version-of-php/660/2 "2016-08-25T15:23:56Z")

</div>

Doesn’t sound like your server is setup correctly.

composer uses the `php` command on the CLI… it’s possible you have `php56` installed in which case composer is not going to work.

---

<div class="post-metadata">

**Author:** ![JoeBengalen](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@JoeBengalen](https://discourse.slimframework.com/u/JoeBengalen)\
**Post date:** [August 25, 2016, 10:24pm UTC](https://discourse.slimframework.com/t/slim-composer-is-checking-wrong-version-of-php/660/3 "2016-08-25T22:24:06Z")

</div>

What does `php -v` say?

---

<div class="post-metadata">

**Author:** ![edergonsilva](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@edergonsilva](https://discourse.slimframework.com/u/edergonsilva)\
**Post date:** [August 29, 2016, 12:48pm UTC](https://discourse.slimframework.com/t/slim-composer-is-checking-wrong-version-of-php/660/4 "2016-08-29T12:48:26Z")

</div>

I entered in contact with de support of server and the server configuration is correct now.

Thanks
