Composer vendor binaries do not natively support automatic binary selection based on platform and architecture.
This composer plugin automates installation & removal of platform specific executable created with PHPacker.
Install the plugin:
composer require phpacker/composer-installer
Then add the following to the extra
section of your composer.json
:
"extra": {
"phpacker-install": "my-app",
}