无法安装WYSIWYG扩展为Yii 2使用作曲家


Cannot Install WYSIWYG Extension for Yii 2 Using Composer

我尝试使用composer安装CKEditor和Imperavi Redactor。

对于CKEditor,我得到这个错误:

$ sudo composer require "2amigos/yii2-ckeditor-widget" "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - 2amigos/yii2-ckeditor-widget 0.1.1 requires yiisoft/yii2 * -> no matching package found.
    - 2amigos/yii2-ckeditor-widget 0.1.0 requires ckeditor/ckeditor dev-full/stable -> no matching package found.
    - Installation request for 2amigos/yii2-ckeditor-widget * -> satisfiable by 2amigos/yii2-ckeditor-widget[0.1.0, 0.1.1].

有趣,因为我在我的作曲家中放了"yiisoft/yii2":"*"。json要求

这是Imperavi reactor的错误:

$ sudo composer require asofter/yii2-imperavi-redactor "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested package asofter/yii2-imperavi-redactor could not be found in any version, there may be a typo in the package name.
Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

我应该怎么做才能安装其中一个?由于

对于imperavi编辑器,使用以下命令:

sudo composer require asofter/yii2-imperavi-redactor "dev-master"