Sandro_s2018-03-02 20:51:58
Sandro_s, 2018-03-02 20:51:58

2 composers in one project - how to arrange?

The project consists of a yii2 site with a connected blog module.
It is divided into public_html in which for the hosting 'public' folder there are: 5a998d30168a2941581659.jpeg
and yii folders in which the main composer.json
But there was a problem on packagist with composer levels.
I had to create another one. packagist doesn't see it.

"name": "medeyacom/ss1",
"description": "site with blog",
"type": "yii2-extension",
"keywords": ["yii2","extension"],
"license": "MIT",
"authors": [
"name": "",
"email": ""
"require": {
"yiisoft/yii2": "~2.0.0"
"autoload": {
"psr-4": {
"medeyacom\\ss1\\": ""
Packagist on submit "The package name was not found in the composer.json, make sure there is a name present."

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Maxim Timofeev, 2018-03-02

Why do you need 2? Create 1, and generate the contents of public_html with the init command. Just as it is done when installing yii, only it creates index.php in the web and some config files, and you add the logic for transferring from web to public_html and profit there (just don’t drag assets, they are created automatically anyway).
I think you definitely don't need public_html on gitHub.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question