9
I am developing a PHP project that requires two libraries separately. 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 idealized:
All projects with Composer...as usual
All projects with git repositories... as usual
By making changes to the two complementary projects I intend to update with the main project right after each clear commit.
To do it I thought it would be simple to put in such MAIN PROJECT the following:
"repositories": [
{
"packagist": false
}, {
"type": "vcs",
"url": "/localhost/htdocs/projecto1/"
},{
"type": "vcs",
"url": "/localhost/htdocs/projecto2/"
}],
However, being local, I can’t get you to update directly from the git repository of each NETBEANS-created sub-project. I wanted to avoid putting the projects online until they are more developed. I have at the root of each project their file composer.json
and of course the directory .git
repository.
After hitting my head, I decided to ask if anyone has ever been through a similar situation and enlighten me on this subject... I have a lot of experience with Poser but I really don’t understand why it doesn’t work.
UPDATING:
with you as artifact
placing the repositories in zip’s but it’s far from what I intended. It forces me to zip, with the file composer.json
at the root of the zip package...
example:
(...)
"repositories": [
{
"packagist": false
}, {
"type": "artifact",
"url": "/artifacts/"
}],
(...)
this excerpt is placed in the composer.json
of projecto MAIN
. I turn around but I can’t do it the way I find most interesting and productive from each repository GIT
local for each project on which the main project depends.
Hasn’t anyone been through this yet?
You have to commit to update data on
git
. One idea would be to have all three projectiles in a single repository in thegit
.– mutlei
@I changed it if I read the question well, you will see that in point 3 I mentioned it. I update with commit... But I can’t get to it. As for the only repository as you suggest?
– chambelix
A repository with only the three projectiles.
– mutlei