form-synergy/fs-demo

此包将使用FormSynergy PHP API创建和更新多个资源,包括JavaScript、HTML和CSS。

1.51 2019-05-14 02:57 UTC

This package is auto-updated.

Last update: 2024-09-14 15:47:41 UTC


README

此包将使用API自动配置以下内容

  • 网站注册和验证
  • 创建策略。
  • 创建多个目标。
  • 多个模块,包括交互
  • 使用HTML、CSS、JavaScript、jQuery和SVG的演示页面

使用Composer安装

composer require form-synergy/fs-demo

包含库

require '/vendor/autoload.php';

加载包

您需要在Form Synergy控制台中获取您的凭证: https://formsynergy.com/console/

\FormSynergy\Fs_Demo([
    'strategy'      => '', // Eg: Form Synergy Demo
    'profileid'     => '', // You can find the profile id under the profile tab: https://formsynergy.com/console/
    'website' => [
        'proto'     => '', // Eg: https, or http
        'domain'    => '', // Eg: demo.formsynergy.com
        'name'      => '', // Eg: Form Synergy demo
        'indexpage' => '', // Eg: /packages/fs-demo
    ],
    'config' => [
        'apikey'    => '', // API Key: Under the API access tab: https://formsynergy.com/console/
        'secretkey' => '', // API Key: Under the API access tab: https://formsynergy.com/console/

    ],
    'contact' => [          // Alerts and notifications contact.
        'fname'     => '', 
        'lname'     => '',
        'email'     => '',
        /**
         * Format:
         *  - default for HTML & Text,
         *  - text, 
         *  - markdown
         */
        'format'    => ''  
    ],
    'storage' =>       [__DIR__, 'form-synergy-demo'] 
]);