Skip to content
API client written in PHP to manage Form Synergy services
Branch: dev-master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
composer.json API PHP library

A PHP library to manage Form Synergy services.

Install using composer

composer require form-synergy/php-api

Include the library

require '/vendor/autoload.php';

Enable session management


Import the Form Synergy class

use \FormSynergy\Fs as FS;

You will need to retrieve your credentials in the Form Synergy console.

Form Synergy Website:

  • $profileid = '';
  • $apikey = '';
  • $apisecret = '';

If you are a reseller

  • $resellerid = '';


    'version' => 'v1',
    'protocol' => 'https',
    'endpoint' => '',
    'apikey' => $apikey,
    'secretkey' => $secretkey,
    'max_auth_count' => 15,

local storage

Enable local storage to store downloads and responses.

FS::Storage( '/', 'local-storage' );

Load account

Load and start managing an account.

$api = FS::Api()->Load($profileid);

Add a domain

        'name' => 'MyWebsite',
        'domain' => '',
        'proto' => 'https://'

Meta tag

Add the site id meta tag as follow

<meta name="fs:siteid" content="<?php echo $api->_website('siteid');?>">


        'siteid' => $api->_website('siteid')

Create a strategy

A strategy is composed of modules and objectives.

        'name' => 'Default strategy',
        'siteid' => $api->_website('siteid')

Creating modules

Modules are bundles composed of a subject, body and form inputs. Each module can be customized to handle events and responses individually. Modules can be chain linked together to create contiuous interactions. API documentation

Create an objective

An objective allows you to define notification methods, and goals based on obtained information. API documentation

You can’t perform that action at this time.