HubSpot-Php sample OAuth 2.0 app
March 7, 2024 ยท View on GitHub
Setup App
Make sure you have Php 7.4+ and Composer installed.
Configure
- Copy .env.template to .env
- Paste your HUBSPOT_CLIENT_ID and HUBSPOT_CLIENT_SECRET
Install
composer i
Running
php -S localhost:8000 -t src/public
You should now be able to navigate to http://localhost:8000 and use the application.
Configure OAuth
Copy redirect url from login page and designate this on your app's Auth settings page.