Search code examples
phpcomposer-phpyii2-advanced-apppackagist

Composer create-project is not working even though latest release is available on packagist, but composer install works for same project


UPDATED: It's working on Ubuntu but not on Windows, is there installation problem with Composer ?

Package: https://packagist.org/packages/chetan85/yii2-app-advanced-for-shared-hosting

Command: php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

Error: enter image description here

Same is happening with yii2-advanced app installation: enter image description here enter image description here

BUT: all the update and install command are working fine. If we downdload .zip file from: https://github.com/chetan85/yii2-app-advanced-for-shared-hosting/releases/tag/2.0.11.2

and do php ../composer.phar install It works perfectly fine. enter image description here


Solution

  • @All, The problem here was command i.e Old command

    php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

    New Command

    ./composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

    We SHOULD NOT be using PHP in command i.e

    php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

    Then everything works fine.