Issue Description
Able Agent is using the old hubspot API, when Hubspot deprecated API keys in favour of Private Apps
This involved moving across to the new version of the hubspot API PHP library (https://github.com/HubSpot/hubspot-api-php) which is kept up to date with php versions.
Able Agent has a requirement to run old version of php as it can’t update certain plugins.
The issue was around how to tell composer that we are stuck using a particular version of PHP
We could go through each release in Github and find the dependancies in the composer.json file but that would take ages.
How to Fix the Issue
Add the following to composer.json
Fixed Code Snippets
"config": {
"platform": {
"php": "7.4.0"
}
},
References
Reference Description |
Reference Link |
---|---|
Stackoverflow |
View Page |