Search code examples
phpcomposer-phpcodeigniter-4

Can't create project with Composer


I am trying to create project with Composer using command

composer create-project codeigniter4/appstarter myproject

and i get this Exception

[InvalidArgumentException] Could not find package codeigniter4/appstarter with stability stable in a version installable using your PHP version 5.6.40.


Solution

  • I edited Path variable, changed path to php from C:\wamp64\bin\php\php5.6.40 to C:\wamp64\bin\php\php7.3.12 and it worked.