Install two (02) Bower packages like jquery 2.2.4 and pickadate 3.5.6 with Composer configuration for Yii2 project
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo npm install -g bower
For install the Webapp in Development enviroment executes the following commands:
$ composer global require "fxp/composer-asset-plugin:~1.1.1"
$ composer install
Later when finish the installation, you will have a new directory
called vendor/
based on composer
tool. This directory have a
directory called bower
that includes the Bower packages needed
for your project.
jQuery 2.2.4 Bower package look like the following:
vendor/bower/jquery
├── AUTHORS.txt
├── bower.json
├── dist
├── external
├── LICENSE.txt
├── README.md
└── src
Pickadate 3.5.6 Bower package look like the following:
vendor/bower/pickadate/
├── bower.json
├── Gruntfile.js
├── lib
├── package.json
├── tests
├── version-bump.js
└── version-commit.js
Actually, there is a simple solution now using https://asset-packagist.org/. YII is using it by default in the newer versions.