(For Alex) Manually set version for packagist, and add user-agent string.

@lopatin