2 composer in one project — how to make?

The project consists of a website on yii2 module connected c blog.
It is divided into public_html for the folder 'public' hosting are:5a998d30168a2941581659.jpeg
and the yii folder in which the main composer.json
5a998da6c29c0662674079.jpeg

But there is a problem on packagist with composer levels.
I had to create another one because packagist to see it.
5a998e33d3b9e261474216.jpeg
spoiler
{
"name": "medeyacom/ss1",
"description": "blog site with",
"type": "yii2-extension",
"keywords": ["yii2","extension"],
"license": "MIT",
"authors": [
{
"name": "",
"email": ""
}
],
"require": {
"yiisoft/yii2": "~2.0.0"
},
"autoload": {
"psr-4": {
"medeyacom\\ss1\\": ""
}
}
}
5a998a3555143072866569.jpeg

Packagist when you submit "The package name was not found in the composer.json, make sure there is a name present."

5a998aca0410b668895099.jpeg
June 7th 19 at 14:45
1 answer
June 7th 19 at 14:47
Why do You need 2? Create 1, and the contents of public_html generate by the init command. In the same way as is done when you install yii, only it creates index.php in the web and some configuration files, and You add there the logic of the transfer from web to public_html and profit (only assets not Tahiti they are still machine generated).
I think public_html on gitHub You just do not need.

Find more questions by tags YiiGit