PHPackages                             form-synergy/callback-connection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. form-synergy/callback-connection

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

form-synergy/callback-connection
================================

This script will create a connection between a module and your own javaScript code by creating a callback method. This script will not work by itself.

04PHP

Since Apr 7Pushed 7y agoCompare

[ Source](https://github.com/form-synergy/callback-connection)[ Packagist](https://packagist.org/packages/form-synergy/callback-connection)[ RSS](/packages/form-synergy-callback-connection/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Callback Connection
===================

[](#callback-connection)

This script will create a connection between a module and your own javaScript code by creating a callback method. This script will not work by itself.

Please review the documentation on how to create a callback [Callack](https://formsynergy.com/documentation/javascript-client/#script-create-callback)

Install using composer
----------------------

[](#install-using-composer)

```
composer require form-synergy/custom-module
```

Include the library
-------------------

[](#include-the-library)

```
require '/vendor/autoload.php';
```

Enable session management
-------------------------

[](#enable-session-management)

```
\FormSynergy\Session::enable();
```

Import the Form Synergy class
-----------------------------

[](#import-the-form-synergy-class)

```
use \FormSynergy\Fs as FS;
```

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

Console Access:

- $profileid = '';
- $apikey = '';
- $apisecret = '';

If you are a reseller

- $resellerid = '';

Configuration
-------------

[](#configuration)

```
FS::Config([
    'version' => 'v1',
    'protocol' => 'https',
    'endpoint' => 'api.formsynergy.com',
    'apikey' => $apikey,
    'secretkey' => $secretkey,
     //'resellerid' => $resellerid,  If you are a reseller
    'max_auth_count' => 15,
]);
```

local storage
-------------

[](#local-storage)

Enable local storage to store downloads and responses.

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

Load account
------------

[](#load-account)

Load and start managing an account.

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

Run script
----------

[](#run-script)

update the empty values with the appropriate information.

```
\FormSynergy\Custom_Module::Run([
    'siteid' => '',
    'modid' => '',

    /*
     * To experience module connections,
     * Please visit the playground page: https://formsynergy.com/playground/
     *
     * NOTE: We are connecting this module
     * by providing a callback,
     *
     * Creating a callback: https://formsynergy.com/documentation/javascript-client/#script-create-callback
     *
     */
    'onsubmit' => 'callback:CustomCallbackMethod'
])
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/094bc96d926497c173f6565c8f7391d3f0db4d860fea4ea115fa710c3cf12dd6?d=identicon)[joeker](/maintainers/joeker)

---

Top Contributors

[![form-synergy](https://avatars.githubusercontent.com/u/47343602?v=4)](https://github.com/form-synergy "form-synergy (2 commits)")

### Embed Badge

![Health badge](/badges/form-synergy-callback-connection/health.svg)

```
[![Health](https://phpackages.com/badges/form-synergy-callback-connection/health.svg)](https://phpackages.com/packages/form-synergy-callback-connection)
```

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[asantibanez/livewire-select

Livewire dropdown select component

520138.4k2](/packages/asantibanez-livewire-select)[square1/nova-metrics

Add support for resource-filters on your laravel nova metrics

27278.7k](/packages/square1-nova-metrics)[portphp/spreadsheet

PhpSpreadsheet reader and writer for Port

14796.4k4](/packages/portphp-spreadsheet)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
