I’m learning to use composer for all plugins but hitting many roadblocks.
The latest is trying to install the roots/roots-wrapper-toolbar plugin.
composer require roots/roots-wrapper-toolbar
returns:
[InvalidArgumentException]
Could not find package roots/roots-wrapper-toolbar at any version for your minimum-stability (stable). Check the package spelling or
your minimum-stability
I’m also wondering often bedrock users end up just using the admin panel to install plugins, as private and github based ones so often are difficult to install via the composer require command.
EDIT
I misunderstood where composer looks. I added the git repo to the repositories list in the composer.json:
"repositories": [{
"type": "composer",
"url": "https://wpackagist.org"
},{
"type": "vcs",
"name": "roots/roots-wrapper-toolbar",
"url": "https://github.com/roots/roots-wrapper-toolbar"
}]
and this allowed composer to find it.
note: I used composer require roots/roots-wrapper-toolbar:dev-sagesupport