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

But there is a problem on packagist with composer levels.
I had to create another one because packagist to see it.
"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\\": ""

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

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