I have been using yii2 for sometime now but i cant wrap my head around how to manage my packages. I have two issues in these regard.
when i add a package to yii
This can be archived by overwriting the default alias path for bower packages which is @vendor/bower to @vendor/bower/bower-asset.
This can be done from the web.php file under $config=[]
'aliases' => [
'@bower' => '@vendor/bower/bower-asset',
],
when you echo
echo Yii::getAlias('@bower');
it should echo
/Library/WebServer/Documents/project-name/vendor/bower/bower-asset