Manually install yii2-jui

I can’t install composer at office.

How can I install the extension yii2-jui manually ?

I’ve extracted the .zip in vendor/yiisoft so I have vendor/yiisoft/yii2-jui/ but when in a view I do something like : echo yii\jui\AutoComplete::widget([…, I have the error : Class ‘yii\jui\AutoComplete’ not found

Thanks !

What exactly prevents you to install composer? It’s just a PHP script so if PHP runs fine Composer should be OK as well.

It was a proxy problem, I finally solved it.

Then I encountered other problems when running composer and I had to change minimum-stability to dev instead of stable to download yii2-jui.

After other error messages concerning a class like this ComposerAutoloaderInit664c944cbb21bd37ad45434d2cb25a5b unable to find, I finally got things to work I don’t even know how.

If there’s a way to install yii2-jui manually I’m interested.

I waste a lot of time because of composer I’m not used to.

I would recommend you to use composer but if you want to install it manually, then you have to put this config:




...,

'yiisoft/yii2-jui' => 

  array (

    'name' => 'yiisoft/yii2-jui',

    'version' => '2.0.0.0',

    'alias' => 

    array (

      '@yii/jui' => $vendorDir . '/yiisoft/yii2-jui',

    ),

  )

inside the


extensions.php

!

That’s a useful tip !

I’d like to user composer but I waste a lot of time.

Now when I do php composer.phar install, I have :

Fatal error: Class ‘yii\composer\Plugin’ not found in phar:///my-project-path/composer.phar/src/Composer/Plugin/PluginManager.php on line 234

i said manually!!! manually != composer

I wanted to try composer again and got the message written.