change composer repository
Posted: May 16th, 2017, 9:57 am
hi there
I am wanting to change the composer repository from the default packagist.org to wpackagist.org as we are working on a wordpress project, and would like to manage the plugins/thems in this way.
I cannot however see any options to change the default.
I have tried updating the composer.json in the root of the project thusly:
"repositories": [
{
"packagist.org": false,
"type": "composer",
"url": "https://wpackagist.org"
}
],
to no avail. is it indeed possible to switch repos?
I am using VS 2017 [15.1.26403.7] (also tried 2015)
as a bit of an aside, I would be happy (at least initially) to simply use composer form the command line, but cant seem to find the composer executable - I presume php tools puts this somewhere?
last thing - how can I deal with premium plugins which are not mirrored on the standard repos - other than i guess making a local repo..?
any help much appreciated
thanks
I am wanting to change the composer repository from the default packagist.org to wpackagist.org as we are working on a wordpress project, and would like to manage the plugins/thems in this way.
I cannot however see any options to change the default.
I have tried updating the composer.json in the root of the project thusly:
"repositories": [
{
"packagist.org": false,
"type": "composer",
"url": "https://wpackagist.org"
}
],
to no avail. is it indeed possible to switch repos?
I am using VS 2017 [15.1.26403.7] (also tried 2015)
as a bit of an aside, I would be happy (at least initially) to simply use composer form the command line, but cant seem to find the composer executable - I presume php tools puts this somewhere?
last thing - how can I deal with premium plugins which are not mirrored on the standard repos - other than i guess making a local repo..?
any help much appreciated
thanks