定制 blackbricksoftware/gravityforms-civicrm-form-processor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

blackbricksoftware/gravityforms-civicrm-form-processor

Composer 安装命令:

composer require blackbricksoftware/gravityforms-civicrm-form-processor

包简介

README 文档

README

Send remote requests to CiviCRM with Gravity Forms Webhooks. This can be done directly to the CiviCRM API or via Form Processor.

What does this extension do?

TL;DR; This extension makes it easier to send data from a Gravity Form to a remote CiviCRM installation.

The CiviCRM REST REST API consumed data via encoded JSON a HTTP form post. In APIv3, this variable is json, in APIv4 this variable is params. Out of the box, the Gravity Forms Webhooks extension does not support structured JSON or combining data encodings like this (i.e. a Request Format of FORM containing encoded JSON).

This extension also add the option to send an email notification when a webhook to CiviCRM fails.

How do I get this up and running?

  1. (Recommended) Install and configure the AuthX extension that comes with CiviCRM. This gives many options for authentication mechanisms.
    1. Configure authentication rules and mechanisms (Administer -> Administration Console -> Authentication). The defaults are probably okay.
  2. (Recommended) Install API Key Extension
  3. (Recommended) Install the Action Provider and Form Processor extensions. These are not necessary, but they do provide quite a bit for flexibility in how data from Gravity Forms is processed compared to directly using the CiviCRM API.
  4. Create a new contact to function as the creator of any data coming in from Gravity Forms; there are a number of ways to authenticate with this contact. This contact might need an attached user account if the Gravity Forms requests will require specific permissions.
    1. Add an API Key to this contact.
    2. Not the API Key and Site Key (if using Site Key Guard in AuthX)
  5. Determine the CiviCRM API end point. There are a number of options: legacy, modern, CMS specific... In this example, we will use the modern ones.
    1. Wordpress
      1. https://civicrm.example.org/civicrm/ajax/rest
      2. https://civicrm.example.org/wp-json/civicrm/v3/rest
      3. https://civicrm.example.org/civicrm/?civiwp=CiviCRM&q=civicrm/ajax/rest
    2. Drupal
      1. https://civicrm.example.org/civicrm/ajax/rest
    3. Joomla
      1. https://civicrm.example.org/index.php?option=com_civicrm&format=raw&task=civicrm/ajax/rest
      2. (with customization) https://civicrm.example.org/civicrm/ajax/rest
        1. To use the clean version of the URL with Joomla, add these likes to the .htaccess file user the `` section
        # Provide a consistant way to access civicrm content
        RewriteCond %{REQUEST_URI} ^/civicrm/(.*)$
        RewriteRule ^(.*)$ index.php?option=com_civicrm&format=raw&task=$1 [QSA]
        
  6. Create a Gravity Form
  7. Go to the Form Settings and add a Webhook
    1. Add the CiviCRM API end point to the Request URL with entity (e.g. Contact) and action (e.g. create) as query string parameters.
    2. Choose POST for the Request Method and FORM for the Request Format.
    3. Enable the CiviCRM API Format
    4. Add Request Headers to provide authentication with CiviCRM. Out of the box, three are necessary with AuthX.
      1. Authorization: Bearer **API_KEY**
      2. X-Civi-Key: **SITE_KEY**
      3. X-Requested-With: XMLHttpRequest
    5. Under the Request Body choose to Select Fields.
      1. Any normal key field will be directly passed to CiviCRM
      2. Any key that needs pass to CiviCRM in the json (v3) or params (v4) JSON encoded form value, prepend json. or params. respectively. For example, to send CiviCRM a first name in the request, create the key json.first_name.

Gravity Forms Webhook Settings

Other settings

Two additional helper settings are added to the form settings.

Gravity Forms Form Settings

  • Delete entries after Webhook are completed successfully: Enabling this setting will delete entries after all Webhooks successfully resolve. Useful for data security.
  • Number of times to try submitting a Webhook: By default, Gravity Forms will only attempt to submit a Webhooks one time. This setting will allow a Webhook to be tried multiple times.

Gravity Forms Form Settings Explanation

blackbricksoftware/gravityforms-civicrm-form-processor 适用场景与选型建议

blackbricksoftware/gravityforms-civicrm-form-processor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 blackbricksoftware/gravityforms-civicrm-form-processor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 blackbricksoftware/gravityforms-civicrm-form-processor 我们能提供哪些服务?
定制开发 / 二次开发

基于 blackbricksoftware/gravityforms-civicrm-form-processor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 27
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-02