What kind of HubSpot integration are you looking for?
If it’s only Event Tracking you should be able to simply add the script to your HTML output (eg. in header or footer).
For a full API integration you can either check out their NodeJS Client Library, or use the PHP library in a custom plugin and create your own REST endpoints where needed.