sitestein/statamic-form-webhooks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sitestein/statamic-form-webhooks

最新稳定版本:2.0.0

Composer 安装命令:

composer require sitestein/statamic-form-webhooks

包简介

README 文档

README

Form Webhooks is a Statamic addon that pushes data from a form submission to a specified webhook.

Form Webhooks can be usefull to send form data to a CRM, mailinglist or other service.

You could create webhooks with Make.com or Zapier and send form data to your desired integration, this allows you to;

  • Collect e-mailadresses and add them to a Mailchimp mailinglist
  • Notify Slack channels of a new form submission
  • Collect prospects to your CRM

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following commands from your project root:

composer require sitestein/statamic-form-webhooks
php artisan vendor:publish --tag=statamic-form-webhooks-config

How to Use

After you installed the package and run the publish command, you can find the config file in config/statamic-form-webhooks.php. Here you can add a new webhook by adding a new item to webhooks array.

Example:

 [
    // ...
    'webhooks' => [
        // ...
        'newsletter' => [ // 'newsletter' is the handle of the form
            'url' => 'https://hook.eu1.make.com/loremipsum', // The webhook url
            'fields' => [ // The fields that should be sent to the webhook
                'email' => 'email',
                'name' => 'name',
            ],
            'if' => [ // optional, only send if these fields are a specific value
                'checkboxes_field.0' => 'subscribe',
            ],
        ],
    ]
 ]

Now all submissions from the form with the handle newsletter will be sent to the webhook. If you use Make.com for example, you can create a webhook and see the form data, which you can map to your desired integration.

This package also integrates with Ray for debugging, if you have Ray installed, just open the app and submit a form.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-10-12