# Require mvc skeleton with composer and PHP 8

**URL:** <https://discourse.laminas.dev/t/require-mvc-skeleton-with-composer-and-php-8/1986>\
**Category:** Components & MVC\
**Tags:** laminas-mvc-skeleton\
**Created:** [December 4, 2020, 3:27pm UTC](https://discourse.laminas.dev/t/require-mvc-skeleton-with-composer-and-php-8/1986 "2020-12-04T15:27:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezkimo](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ezkimo/32/781_2.png) [@ezkimo](https://discourse.laminas.dev/u/ezkimo)\
**Post date:** [December 4, 2020, 3:27pm UTC](https://discourse.laminas.dev/t/require-mvc-skeleton-with-composer-and-php-8/1986/1 "2020-12-04T15:27:07Z")

</div>

A client of mine already uses the latest released stable version of PHP (PHP 8). If I 'm trying to install the laminas mvc skeleton, it always ends up with an error.

> [InvalidArgumentException]  
> Could not find package laminas/laminas-mvc-skeleton with stability stable in a version installable using your PHP version, PHP extensions and Composer version.

I 'm using the composer command from the laminas docs.

```auto
composer create-project -s dev laminas/laminas-mvc-skeleton path/to/install

```

What is the most common workaround to install the laminas mvc skeleton with PHP 8 and composer?

---

<div class="post-metadata">

**Author:** ![jeferson](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/jeferson/32/677_2.png) [@jeferson](https://discourse.laminas.dev/u/jeferson)\
**Post date:** [December 7, 2020, 7:43pm UTC](https://discourse.laminas.dev/t/require-mvc-skeleton-with-composer-and-php-8/1986/2 "2020-12-07T19:43:59Z")

</div>

Hello @ezkimo! You can add the --ignore-platform-reqs parameter when creating the project with composer.  
composer create-project -s dev laminas/laminas-mvc-skeleton path/to/install **–ignore-platform-reqs**

I hope this helps you.

---

<div class="post-metadata">

**Author:** ![ezkimo](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ezkimo/32/781_2.png) [@ezkimo](https://discourse.laminas.dev/u/ezkimo)\
**Post date:** [December 8, 2020, 12:29pm UTC](https://discourse.laminas.dev/t/require-mvc-skeleton-with-composer-and-php-8/1986/3 "2020-12-08T12:29:20Z")

</div>

Thank you very much, @jeferson. This answer helped a lot.

To get a deeper understanding why most of the Laminas components actually are not installable with composer and PHP 8, I 've found this.

> **[Versions and constraints - Composer](https://getcomposer.org/doc/articles/versions.md#caret-version-range-)**

Most of the Laminas components have a composer.json file. In this file the PHP version is written with the ^7.3 constraint. This means, that a PHP version \>= 7.3 and \< 8.0 is required. The ^7.3 constraint does not match PHP 8.0 although it 's higher than 7.3.

To allow anything higher than PHP 7.3 in the PHP 7 release cycle and PHP 8 the constraint should be “^7.3 || 8.0”.

Hopefully this will be fixed soon. I 've seen, that there is a pull request for PHP 8 support of laminas components. But I don 't know, if composer config is part of the pull request.

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [December 8, 2020, 12:46pm UTC](https://discourse.laminas.dev/t/require-mvc-skeleton-with-composer-and-php-8/1986/4 "2020-12-08T12:46:19Z")

</div>

You can follow the progress on GitHub. There you can find a [project for the support of PHP 8.0](https://github.com/orgs/laminas/projects/11). laminas-mvc-skeleton is also [included](https://github.com/laminas/laminas-mvc-skeleton/pull/31).
