i want to use amnah-yii2 user but i could not use the composer to install it. when i run composer this error occure.
Could not open input file: composer.phar
Regards
Related
Every time when i try to install some package via composer in yii2. I have error like in picture.
How can i fix this? Help me please!
Upgrade fxp/composer-asset-plugin to latest version (1.2.1) and composer to latest version (1.2.0).
composer global require "fxp/composer-asset-plugin:^1.2.0"
composer selfupdate
Try this and then try to install packages
php composer.phar global update fxp/composer-asset-plugin --no-plugins
json file in your localhost and put your code in that
and then run command line and go to the composer.json directory
and then write composer init then cmd help you to continue the way
Thank you all for your advising! Compouser didn't accept any command the problem above had appear always. I think the problem appear after that i had change php.ini file. Problem solved by reinstaling Compouser and Xampp
I am installing new yii2 project.I have already installed the controller .but when i run following command in terminal
php composer.phar create-project --stability=dev yiisoft/yii2-app-basic my_yii2_trial
and for
php composer.phar create-project yiisoft/yii2-app-basic basic
for both this command Its showing error that,
[InvalidArgumentException]
Could not find package yiisoft/yii2-app-basic with stability stable.
Please help.
Why don't you follow official documentation?
http://www.yiiframework.com/doc-2.0/guide-start-installation.html
composer global require "fxp/composer-asset-plugin:~1.1.1"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
I am using YII2 for my project,I have created a project(advanced template) using composer, now I need to start another project, firstly I have update composer(composer self-update), it is fine. now I am trying to complete installation process of YII2 advanced template on my lampp using composer, on the step Configuring Composer getting following error,
[ErrorException]
touch(): Utime failed: Permission denied
Can someone help me, why the problem is occur in 2nd time installation?
Thanks
You can run composer as root user or use the following command
sudo composer create-project --prefer-dist yiisoft/yii2-app-advanced [project-name]
If you are using windows machine
1.Add permission via right click on folder like /myprojects > properties > security
2.composer create-project --prefer-dist yiisoft/yii2-app-advanced [project-name]
Or if you on Linux machine please add permissions
1.sudo php composer clear-cache
2.sudo composer create-project --prefer-dist yiisoft/yii2-app-advanced [project-name]
Found documentation about this widget here and library here.
Tried to install with Composer and failed:
Tried to copy "yiisoft/yii2-jui": "~2.0.0" to composer.json and then update Composer and failed again:
Class 'yii\jui\DatePicker' not found
Is there any way to install this extension without using Composer?
Did you install composer global require "fxp/composer-asset-plugin:1.0.0" ? It is a NPM/Bower Dependency Manager for Composer that required by yii2. Before installing yii2-jui try this command, and then composer update
I am trying to install mink/behat on windows machine using composer by following the help given on behat page. http://docs.behat.org/cookbook/behat_and_mink.html.
But when I run
php composer.phar install
then I get the error
But I have composer.json(exactly same as described in behat page) file in mentioned directory. Can someone please guide me how can I install it. Thanks
Composer installs packages on project-base. I don't think you have a PHP project inside C:\Windows\system32...
Navigate to your project by using cd (change dir) and be sure the composer.phar file is automatically loaded in every directory (see this answer).
Then create a composer.json file in which you put the things that is stated in the docs.
After that run composer install (or php composer.phar install, depends on which install method you used).