S
S
Svetlana Galenko2019-01-31 18:09:41
Yii
Svetlana Galenko, 2019-01-31 18:09:41

Why is the yii2 extension not installed via composer?

Good afternoon) For some reason that is not clear to me, the extension for yii2 is not installed: When installing it, the following error occurs: They write that you need to install the package - 2 amigos/transliterator-helper 2.0. * and that it exists as 2 amigos/transliterator-helper [dev-master] but is rejected by the restriction. And I don’t understand what limitation .. I tried to install this package, but also with an error .. some kind of hopelessness .. Please help .. Here is the composer.json file:
composer require "ricco/yii2-ticket:2.0.0"
5c530daccf766041169577.png
5c530fa439490845475830.png

{
    "name": "yiisoft/yii2-app-basic",
    "description": "Yii 2 Basic Project Template",
    "keywords": ["yii2", "framework", "basic", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "~2.0.5",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0",
        "dmstr/yii2-adminlte-asset": "2.*",
        "vova07/yii2-imperavi-widget": "*",
        "kartik-v/yii2-widget-datepicker": "@dev",
        "kartik-v/yii2-field-range": "*",
        "kartik-v/yii2-krajee-base": "dev-master",
        "mihaildev/yii2-ckeditor": "*",
        "mihaildev/yii2-elfinder": "*",
        "yiisoft/yii2-imagine": "^2.1",
        "zyx/zyx-phpmailer": "@stable",
        "2amigos/transliterator-helper": "2.0.*"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.0.0",
        "yiisoft/yii2-gii": "~2.0.0",
        "yiisoft/yii2-faker": "~2.0.0",

        "codeception/base": "^2.2.3",
        "codeception/verify": "~0.3.1",
        "codeception/specify": "~0.4.3"
    },
    "config": {
        "process-timeout": 1800
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::postCreateProject"
        ]
    },
    "extra": {
        "yii\\composer\\Installer::postCreateProject": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "yii": "0755"
                }
            ],
            "generateCookieValidationKey": [
                "config/web.php"
            ]
        },
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Volintsev, 2019-01-31
@swallow_97

Svetlana Galenko , in your composer.json file

"minimum stability": "stable"

The package repository says
https://packagist.org/packages/2amigos/translitera...
So you have installed some kind of unstable or incompatible version.
Try to install the package from the repository as described here https://getcomposer.org/doc/05-repositories.md#loa... and here www.andrew-kirkpatrick.com/2012/10/add-a-git-repos. ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question