Download the PHP package stokoe/forms-to-hubspot-connector without Composer

On this page you can find all versions of the php package stokoe/forms-to-hubspot-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package forms-to-hubspot-connector

Forms To HubSpot Connector

Seamlessly connect your Statamic forms to HubSpot - Automatically create and update contacts in HubSpot with advanced field mapping and comprehensive error handling.

🔗 Related Connectors

This connector is part of the Forms To Wherever ecosystem. Check out our other connectors:

Features

Requirements

Installation

  1. Install the base Forms To Wherever addon:

  2. Install this HubSpot connector:

Configuration

1. Create a HubSpot Private App

  1. In HubSpot, go to Settings → Integrations → Private Apps
  2. Click Create a private app
  3. Give it a name (e.g., "Statamic Forms Integration")
  4. In the Scopes tab, select:
    • crm.objects.contacts.read
    • crm.objects.contacts.write
  5. Click Create app and copy the access token

2. Configure Your Form

Add the form_connectors field to your form blueprint:

3. Enable HubSpot in Control Panel

  1. Edit your form in the Statamic Control Panel
  2. Navigate to the "Form Connectors" section
  3. Enable the HubSpot connector
  4. Configure the settings:
    • Access Token: Your HubSpot private app access token
    • Email Field: Form field containing email (default: email)
    • Create Contact: Enable to create/update contacts
    • Field Mapping: Map form fields to HubSpot properties

Field Mapping

Map your form fields to HubSpot contact properties:

Form Field HubSpot Property Description
first_name firstname First name
last_name lastname Last name
phone phone Phone number
company company Company name
website website Website URL
job_title jobtitle Job title

Custom Properties

You can create custom properties in HubSpot and map them:

  1. In HubSpot: Settings → Properties → Contact properties
  2. Create your custom property and note the internal name
  3. Map your form field to the custom property in the connector settings

Example Form

How It Works

  1. Contact Creation: When a form is submitted, the connector attempts to create a new contact
  2. Duplicate Handling: If a contact with the same email exists (409 error), it searches for and updates the existing contact
  3. Field Mapping: Maps form fields to HubSpot properties based on your configuration
  4. Error Handling: Logs all API responses and errors for debugging

Error Handling

The connector includes comprehensive error handling:

All errors are logged to your Laravel log files for debugging.

Asynchronous Processing

By default, HubSpot API calls are processed asynchronously using Laravel queues to prevent form submission delays. Ensure your queue worker is running:

To process synchronously (not recommended for production), disable async processing in the form connector settings.

Troubleshooting

Common Issues

"Missing access token"

"Invalid or missing email"

"API error 401"

"API error 403"

Debug Logging

Enable debug logging to see detailed API interactions:

Check storage/logs/laravel.log for detailed connector activity.

Security

Available Connectors

Support

License

MIT License - Build amazing things with it!


All versions of forms-to-hubspot-connector with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3
statamic/cms Version ^4.0 || ^5.0 || ^6.0
stokoe/forms-to-wherever Version >=0.0.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stokoe/forms-to-hubspot-connector contains the following files

Loading the files please wait ...