https://getcomposer.org/download/
2) agregar en las variables de entorno PATH
la carpeta donde se guardó composer.phar
usalmente será: C:\ProgramData\ComposerSetup\bin
3) instalando un widget
por ejemplo el multiselect
https://github.com/2amigos/yii2-multi-select-widget
en el readme dice que en la carpeta root del proyecto por consola tiremos este comando
php composer.phar require 2amigos/yii2-multi-select-widget "*"
pero vamos a usar
composer require 2amigos/yii2-multi-select-widget "*"
esta será la salida
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Reading bower.json of bower-asset/jquery (1.10.0)
Could not fetch https://api.github.com/repos/jquery/jquery-dist/contents/bower.j
son?ref=2c62b787b2cafb32af14edadc963b8ba3cb847b8, please create a GitHub OAuth t
oken to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+
on+CGWKS588+2016-08-18+2213
to retrieve a token. It will be stored in "C:/Users/ibazan/AppData/Roaming/Compo
ser/auth.json" for future use by Composer.
Token (hidden):
copiar la url que nos indican (
https://github.com/settings/tokens/new?scopes=repo&description=Composer+ on+CGWKS588+2016-08-18+2213
) ingresar con nuestro usuario de github y obtener el token, pegarlo (no se verá) y darle enter
para que continue con la bajada de archivos
Token stored successfully.
- Installing 2amigos/yii2-multi-select-widget (0.1.1)
Downloading: 100%
Writing lock file
Generating autoload files
No hay comentarios:
Publicar un comentario