title: Composer instalation failed php version conflict
body: <p>I am going to install composer in my laravel project i got an error like 
  Your requirements could not be resolved to an installable set of packages.</p>
  
  <p>I tried</p>
  
  <pre><code>/var/www/html/pro $ composer install
  </code></pre>
  
  <p>Then i got </p>
  
  <pre><code>Problem 1
      - This package requires php ^7.1.3 but your PHP version (7.0.25) does not satisfy that requirement.
    Problem 2
      - Installation request for joshbrw/laravel-module-installer ^0.1.4 -&gt; satisfiable by joshbrw/laravel-module-installer[v0.1.4].
      - joshbrw/laravel-module-installer v0.1.4 requires composer-plugin-api ^1.1 -&gt; no matching package found.
    Problem 3
      - laravel/framework v5.7.9 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.8 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.7 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.6 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.5 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.4 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.3 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.28 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.27 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.26 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.25 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.24 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.23 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.22 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.21 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.20 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.2 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.19 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.18 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.17 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.16 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.15 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.14 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.13 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.12 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.11 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.10 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.1 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.0 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework 5.7.x-dev requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - Installation request for laravel/framework 5.7.* -&gt; satisfiable by laravel/framework[5.7.x-dev, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.12, v5.7.13, v5.7.14, v5.7.15, v5.7.16, v5.7.17, v5.7.18, v5.7.19, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.24, v5.7.25, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
  
  Potential causes:
   - A typo in the package name
   - The package is not available in a stable-enough version according to your minimum-stability setting
     see &lt;https://getcomposer.org/doc/04-schema.md#minimum-stability&gt; for more details.
  
  Read &lt;https://getcomposer.org/doc/articles/troubleshooting.md&gt; for further common problems.
  
  
  
  
   similarly i tried
       /var/www/html/prol $ composer require spatie/laravel-medialibrary
  
      Got error
  
  Using version ^6.9 for spatie/laravel-medialibrary
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - This package requires php ^7.1.3 but your PHP version (7.0.25) does not satisfy that requirement.
    Problem 2
      - Installation request for joshbrw/laravel-module-installer ^0.1.4 -&gt; satisfiable by joshbrw/laravel-module-installer[v0.1.4].
      - joshbrw/laravel-module-installer v0.1.4 requires composer-plugin-api ^1.1 -&gt; no matching package found.
    Problem 3
      - laravel/framework v5.7.9 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.8 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.7 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.6 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.5 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.4 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.3 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.28 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.27 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.26 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.25 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.24 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.23 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.22 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.21 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.20 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.2 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.19 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.18 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.17 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.16 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.15 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.14 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.13 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.12 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.11 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.10 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.1 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework v5.7.0 requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - laravel/framework 5.7.x-dev requires php ^7.1.3 -&gt; your PHP version (7.0.25) does not satisfy that requirement.
      - Installation request for laravel/framework 5.7.* -&gt; satisfiable by laravel/framework[5.7.x-dev, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.12, v5.7.13, v5.7.14, v5.7.15, v5.7.16, v5.7.17, v5.7.18, v5.7.19, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.24, v5.7.25, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
  </code></pre>
  
  <p>Potential causes:
   - A typo in the package name
   - The package is not available in a stable-enough version according to your minimum-stability setting
     see <a href="https://getcomposer.org/doc/04-schema.md#minimum-stability" rel="nofollow noreferrer">https://getcomposer.org/doc/04-schema.md#minimum-stability</a> for more details.</p>