Download the PHP package jordanbeattie/craftcms-hubspot-forms without Composer

On this page you can find all versions of the php package jordanbeattie/craftcms-hubspot-forms. 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 craftcms-hubspot-forms

Hubspot Forms

Select your HubSpot forms directly from a CMS field and render them with Twig. No more copy & pasting embed codes!

Disclaimer: This plugin, "HubSpot Forms", is independently developed and is not officially endorsed by or affiliated with HubSpot, Inc. While it interacts with the HubSpot API, it is a third-party tool and any support or issues should be directed to the developers of this plugin, not HubSpot. The use of HubSpot's logo is for identification purposes only, signifying compatibility with HubSpot services.

Installation

From the browser

  1. Download the plugin from the Craft Plugin Store
  2. Install the plugin from the settings page
  3. Enable the plugin from the settings page

From the terminal

Configuration

Create a HubSpot private app with the forms scope. Copy your access token and add it to the plugin settings HubSpot Token field.

The HubSpot token field can accept .env variables. It is highly recommended that you keep your access token in your .env file.

CMS Field

The plugin adds a "HubSpot Form" field type where you can allow users to select a form present in your HubSpot account. See the templating section on how to render forms from the field.

Templating

Use the plugins render() function to output the form to the template. This requires you to pass the HubSpot form field (or form ID).

Example:

Optional Attributes

You can pass a JavaScript event via the loadOnEvent attribute to trigger the form to load when the JavaScript event is fired.

Example:

Migrating from HubCraft

If you were previously using the jordanbeattie/craftcms-hubspot plugin, you can update your existing fields to the form field provided by this plugin with a simple command.

This will ensure your plugin is installed and configured correctly and then list out each of the old fields before asking you to continue.

By continuing, each of the old fields will be updated to the HubspotFormDropdown provided with this plugin.

Once the command has been run, you should rebuild your project config with php ./craft project-config/rebuild to ensure all fields are synced correctly.

Once this is complete, you should update your templates to use the new syntax.

Old syntax:

New syntax:

Once your templates are updated, you can safely uninstall the HubCraft plugin.

Support

jordanbeattie.com


All versions of craftcms-hubspot-forms with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^5.0.0
guzzlehttp/guzzle Version ^7.0
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 jordanbeattie/craftcms-hubspot-forms contains the following files

Loading the files please wait ....