I'm developing a PHP project that requires two separate libraries. I am required to use NETBEANS.
To develop the three separately but at the same time and because the main project "MAIN PROJECT" needs the other two, I have idealized:
All projects with composer ... as usual
All projects with git repositories ... as usual
When making changes to the two complementary projects I plan to update the MAIN project with the composer soon after each clear commit.
To do this I thought it would be simple to put in the MAIN PROJECT as follows:
"repositories": [
{
"packagist": false
}, {
"type": "vcs",
"url": "/localhost/htdocs/projecto1/"
},{
"type": "vcs",
"url": "/localhost/htdocs/projecto2/"
}],
However, because it is local, I can not update directly from the git repository of each sub project created by NETBEANS. I wanted to avoid putting the projects online until they are more evolved. I have at the root of each project its composer.json
file and of course the .git
directory of the repository.
After shaking my head, I decided to ask if anyone has ever had an equal situation and to enlighten me on this subject ... sff. I have a lot of experience with composer but I'm not even aware why it does not work.
UPDATE:
I get as artifact
putting the repositories in zip's but it is far from what I intended. It forces me to zip , with the file composer.json
in the root of the zip package ...
example:
(...)
"repositories": [
{
"packagist": false
}, {
"type": "artifact",
"url": "/artifacts/"
}],
(...)
This excerpt is placed in composer.json
of projecto MAIN
. I turn around but I can not seem to find how interesting and productive I am from each repository GIT
local for each project the main project depends on.
Has anyone gone through this yet?