S
S
sasha892014-09-20 17:15:05
Yii
sasha89, 2014-09-20 17:15:05

How to install Yii 2 advanced via composer?

Good afternoon,
I can't install Yii 2 advanced via composer.
I use, as in the manual, through the command line:

php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced advanced

But, after a while, it asks for a login and password for some kind of token, and there is no way to even enter the password. As I understand it, the token from GitHub a. What is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2016-09-18
@agent1156

<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'filterModel' => $searchModel,
    'columns' => [
        ['class' => 'yii\grid\SerialColumn'],
        ...
        [
            'class' => 'yii\grid\ActionColumn',
            'template' => '{view} {update} {mydelete}',
            'buttons' => [
                'mydelete' => function ($url,$model) {
                    return Html::a(
                    'удаляшка', 
                    ['/controller/delete', 'id'=>$model->id, 'second_hren'=>'hihichpock']);
                },
            ],
        ],
    ],
]); ?>

S
Sergey, 2014-09-20
@sasha89

As I understand it, the token from GitHub a. What is the problem?

That is the problem. The github API without authorization imposes severe limits. Go to your github profile, create a token and add it to the composer settings on your machine. composer should have written everything in the errors.
nschoenmaker.nl/2013/02/composer-api-limit-at-github

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question