Now Myii project download extensions and with a config array install them with any manual operation. I’ve tryied with 3 my extensions:
scrolltop,
lyiightbox,
queryii,
it work!
Yii2.0 can improve this feature and standardization of extensions. So, we’ll can use phing or yiic to download and install extensions automatically. All three extensions are stored on github.
My extensions has this structure:
/EXTENSION_NAME.readme.markdown
/EXTENSION_NAME/config/main.php
/EXTENSION_NAME/* <- classes or folders …
this is config main:
<?php
return array(
'version' => '1.0',
'extract' => array(
'to' => 'protected/extensions/'
),
);