PHP code example of gorontalokota / gosign-client

1. Go to this page and download the library: Download gorontalokota/gosign-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gorontalokota / gosign-client example snippets




use GosignClient\Config;
use GosignClient\SignRequest;

Config::$isProduction = false;
Config::$clientKey = "client";
Config::$secretKey = "secret";

try {
    $params = array(
        'client_id'       => '_url'    => 'ori Tanda tangan (* Visible atau Invisible
        'sign_reason'     => 'ontoh dibawah
        'sign_width'      => '100', //ukuran lebar qrcode/image dalam pixel
        'sign_height'     => '100', //ukuran tinggi qrcode/image dalam pixel
                    
    );
    $request = SignRequest::create($params);
    echo $request->message;
}
catch (\Exception $e) {
    echo $e->getMessage();
}


//Contoh Request Custom Image Text
$custom_text = array(
            "text" => "Ditetapkan di Gorontalo,/n Pada tanggal {{date}},",
            "text_size" => 52,
            "x" => 5,
            "y" => 50,
            "align" => "center|left|right",
            "font" => "arial|times|bookmark",
            "color" => "#000000",
        );
        
$custom_image_text = json_encode($custom_text, true);

[Link testing Image custom](https://gosign.gorontalokota.go.id/try/custom-image)




use GosignClient\Config;
use GosignClient\SignResponse;

Config::$isProduction = false;
Config::$clientKey = "client";
Config::$secretKey = "secret";

try {
    $response = new SignResponse->getResponse();
}
catch (\Exception $e) {
    echo $e->getMessage();
}