O
O
Oleg Sergeevich2016-05-06 07:15:17
Yii
Oleg Sergeevich, 2016-05-06 07:15:17

How to properly develop yii2 extension?

1) Created a repository on github.
2)Generated extension at runtime\tmp-extensions\
3)git init
git add -A
git commit
git remote add origin https://path.to/your/repo
git push -u origin master
4) [b]composer.phar require redogurez/page:dev-master[/b]
5) made changes, commit and push 6) Added "repositories":[         {             "type": "path",             "url"
to composer.json
[code=php] : "file://F:/Webservers/advanced/frontend/runtime/tmp-extensions/page"         },         { "packagist": false }     ],
7) I do [b]composer.phar update redogurez/page [/b] and despite the "packagist": false and instructions of the local turnip, the composer gets into the Internet and works for about 3 minutes !!!
It is clearly impossible to work at such a pace.
How to properly develop an extension?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Mokeev, 2016-05-07
@zetamen

At the development stage, you can do without composer, write an alias in the config and use it in the application

'aliases' => [
    '@redogurez/page' => '<ext path>',
],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question