As composer has a strict one-package-per-repository rule, the only way to avoid pulling in a ~50MB package for a ~300KB PHP directory is to split the php package into its own repository.
Can we make a subtree-split for php (grpc/grpc-php)? This could be mirrored and versioned automatically, and is already being done for other composer packages for php (see https://github.com/googlecloudplatform/google-cloud-php vs https://github.com/googlecloudplatform/google-cloud-php-bigquery)
grpc/grpc-php repository. Mark as READ-ONLY and disable issues.src/php/bin to push to this repository in the master branch from travis on every commit using a subtree split of src/php/libgrpc/grpc-php using a VERSION file (see this example) and set the initial version to 1.4.7 for backwards compatibility.composer.json inside src/php/lib and update autoloading. The package name will the stay the same.README under src/php/lib pointing to grpc/grpc
Most helpful comment
grpc/grpc-phprepository. Mark as READ-ONLY and disable issues.src/php/binto push to this repository in themasterbranch from travis on every commit using a subtree split ofsrc/php/libgrpc/grpc-phpusing aVERSIONfile (see this example) and set the initial version to1.4.7for backwards compatibility.composer.jsoninsidesrc/php/liband update autoloading. The package name will the stay the same.READMEundersrc/php/libpointing togrpc/grpc