demo: Can't install via composer

Then I run the command for installation project:

composer create-project symfony/symfony-demo my_project

I am getting the error: Could not find package symfony/symfony-demo with stability stable in a version installable using your PHP version, PHP extensions and Composer version.

PHP 8.1.8. Composer 2.3.10

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 19 (7 by maintainers)

Most upvoted comments

When I added the sqlite php extension: sudo apt install php8.0-sqlite3 The issue is fixed 😃 For composer create-project need more details

@7ochem indeed. The extra info is displayed in composer require but not in composer create-project. I opened https://github.com/composer/composer/issues/10959 about it.

On my laptop was php version 8.0. I upgraded version and the compmoser showed more detail: Screenshot from 2022-07-21 22-23-25 Composer should be version 2.4

I had to install php8.1-sqlite3 to get OP’s issue to resolve. By the way, after updating composer to the snapshot version still didn’t get a more descriptive error message.

@7ochem you can run composer self-update --snapshot to use the snapshot version of composer (which contains that change that will be part of the 2.4 release)