form-synergy/site-verification

This template will attempt to verify the domain name where service will be rendered.

dev-master 2019-04-07 11:17 UTC

This package is auto-updated.

Last update: 2022-01-07 17:41:39 UTC


README

This template will attempt to verify the domain name where service will be rendered.

Install using composer

composer require form-synergy/site-verification

Include the library

require '/vendor/autoload.php';

Enable session management

\FormSynergy\Session::enable();

Import the Form Synergy class

use \FormSynergy\Fs as FS;

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

Console Access: https://formsynergy.com/console/

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

If you are a reseller

  • $resellerid = '';

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

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);

Run script

update the empty values with the appropriate information.

\FormSynergy\Site_Verification::Run([
    'proto' => '',
    'domain' => '',
    'name' => '',
    'indexpage' => '',
])