Skip to content

Commit 2dd8b25

Browse files
committed
added Yii2 section to about page
1 parent d35611e commit 2dd8b25

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/views/site/about.php

+17
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,23 @@
7171
]
7272
</code></pre>
7373

74+
<h1>Yii2</h1>
75+
76+
<p>Yii2 expects Bower and NPM packages to be installed to <code>vendor/bower</code> and <code>vendor/npm</code> folders respectively.</p>
77+
78+
<p>So, to use asset-packagist for Yii2 projects it's necessary to reassign Bower and NPM aliases in your application config like this:</p>
79+
80+
<pre><code>
81+
$config = [
82+
...
83+
'aliases' =&gt; [
84+
'@bower' =&gt; '@vendor/bower-asset',
85+
'@npm' =&gt; '@vendor/npm-asset',
86+
],
87+
...
88+
];
89+
</code></pre>
90+
7491
<h1>Acknowledgements</h1>
7592

7693
<p>This project uses Francois Pluchino's <a href="https://github.com/francoispluchino/composer-asset-plugin">composer-asset-plugin</a> to convert Bower and NPM packages to Composer format.</p>

0 commit comments

Comments
 (0)