S
S
Sandro_s2018-03-02 20:51:58
git
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
5a998da6c29c0662674079.jpeg
But there was a problem on packagist with composer levels.
I had to create another one. packagist doesn't see it.
5a998e33d3b9e261474216.jpeg

spoiler
{
"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\\": ""
}
}
}
5a998a3555143072866569.jpeg
Packagist on submit "The package name was not found in the composer.json, make sure there is a name present."
5a998aca0410b668895099.jpeg

Answer the question

In order to leave comments, you need to log in

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

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