HubSpot PHP Sample Trello Integration App
January 19, 2022 · View on GitHub
This is a sample app for the hubspot-php SDK. Currently, this app focuses on demonstrating of Trello integration, Trello cards and HubSpot deals in particular.
Please see the documentation on Creating an app in HubSpot
HubSpot Public API endpoints used in this application
Setup App
Make sure you have:
- Docker Compose installed
- Ngrok account
- Trello account
Configure
- Copy .env.template to .env
- Paste your Ngrok authtoken to NGROK_AUTHTOKEN in .env
- Paste your HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRET, HUBSPOT_APPLICATION_ID and HUBSPOT_DEVELOPER_API_KEY
- Paste youк TRELLO_API_KEY. You can obtain it from https://trello.com/app-key
- Go to https://trello.com/app-key page and paste https://*.ngrok.io to "New Allowed Origin" ("Allowed Resources" section)
Running
The best way to run this project (with the least configuration), is using docker compose. Change to the webroot and start it
docker-compose up --build
Copy Ngrok url from console. Now you should now be able to navigate to that url and use the application.