Yii2 DatePicker installation - yii2

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

Related

Can not use composer for installing amnah user for yii2

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

Cannot install packages via composer in yii2

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

Yii 2 installation error

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

My composer.json does not install new dependencies using composer update command

I am installing external dependencies using composer update command. The following is the section of the composer.json file in c:\xampp\htdocs\myproject\vendor\laravel\framework\ directory.
"require": {
"laravelcollective/html": "~5.0",
"matriphe/imageupload": "5.1.*"
"illuminate/html": "5.0.*#dev"
},
I am getting the following results after running the composer update command:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
I have also tried to create another require array in the composer.json and added the packages I want to install with no success.
The composer update command could not install any unstalled dependency using the composer update command. Even composer self-update did not solve the problem.
Kindly assist me, I have been stuck here for some days now trying all I would do but without success.
I am changing the composer.json under the following directory: c:\xampp\htdocs\myproject\vendor\laravel\framework\ Is this ok?
Don't change any files inside the vendor directory, they are managed by Composer. To install further packages use the composer.json in your project's directory.
And use composer install to install new packages as composer update will update already installed packages to newer versions (if available) too.
composer self-update just updates Composer itself.
You missed column after "matriphe/imageupload": "5.1.*", try to change it:
"require": {
"laravelcollective/html": "~5.0",
"matriphe/imageupload": "5.1.*",
"illuminate/html": "5.0.*#dev"
}

Installing behat with mink on windows using composer

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).