PHPackages                             certhis/sdk - 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. [API Development](/categories/api)
4. /
5. certhis/sdk

ActiveLibrary[API Development](/categories/api)

certhis/sdk
===========

The Certhis-SDK is a PHP library that enables developers to interact with the Certhis API.

0.1(1y ago)06PHP

Since Aug 22Pushed 1y agoCompare

[ Source](https://github.com/certhis/CERTHIS-SDK-PHP)[ Packagist](https://packagist.org/packages/certhis/sdk)[ RSS](/packages/certhis-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Certhis PHP SDK
===============

[](#certhis-php-sdk)

The Certhis PHP SDK allows you to easily interact with the Certhis API. This SDK provides functionality to sign messages and more.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Composer for managing dependencies
- The `kornrunner/keccak` library for hashing
- The `simplito/elliptic-php` library for elliptic curve operations

Installation
------------

[](#installation)

To use the Certhis SDK in your project, you'll need to install it via Composer. If you don't have Composer installed, you can download it from [getcomposer.org](https://getcomposer.org).

```
composer require "certhis/sdk"
```

### 1. `Web3Helper::__construct($privateKey)`

[](#1-web3helper__constructprivatekey)

- **Purpose**: Initializes the `Web3Helper` instance with a given private key. This key is used for cryptographic operations such as signing messages.
- **Parameters**:
    - `$privateKey`: A string representing the private key used for cryptographic operations.

### 2. `Web3Helper::getPublicKey()`

[](#2-web3helpergetpublickey)

- **Purpose**: Retrieves the public address associated with the private key provided during the initialization of the `Web3Helper` instance.
- **Returns**: A string representing the public address.

### 3. `Certhis::__construct($api = 'https://api.certhis.io', $apikey = null)`

[](#3-certhis__constructapi--httpsapicerthisio-apikey--null)

- **Purpose**: Initializes the `Certhis` class, which serves as the main entry point for interacting with the Certhis API.
- **Parameters**:
    - `$api` (optional): The base URL of the Certhis API. Defaults to `'https://api.certhis.io'`.
    - `$apikey` (optional): The API key used for authentication when making requests to the Certhis API. If not provided, the API key must be set later or within the environment.

### 4. `Sign::__construct($certhis)`

[](#4-sign__constructcerthis)

- **Purpose**: Initializes the `Sign` class, responsible for handling the signing and verification processes.
- **Parameters**:
    - `$certhis`: An instance of the `Certhis` class, used to interact with the Certhis API.

### 5. `Sign::get($wallet)`

[](#5-signgetwallet)

- **Purpose**: Retrieves a signature from the Certhis API for a given wallet (public address).
- **Parameters**:
    - `$wallet`: The public address for which the signature is requested.
- **Returns**: An associative array containing the signature.

### 6. `Web3Helper::signMessage($message)`

[](#6-web3helpersignmessagemessage)

- **Purpose**: Signs a message using the private key associated with the `Web3Helper` instance.
- **Parameters**:
    - `$message`: The message string to be signed.
- **Returns**: The signed message.

### 7. `Sign::check($wallet, $signedMessage)`

[](#7-signcheckwallet-signedmessage)

- **Purpose**: Verifies that the signed message corresponds to the original signature retrieved from the Certhis API.
- **Parameters**:
    - `$wallet`: The public address used to generate the original signature.
    - `$signedMessage`: The signed message to be verified.
- **Returns**: A boolean value indicating whether the signed message is valid.

Integration Example
-------------------

[](#integration-example)

Below is an example of how to integrate the Certhis SDK into your PHP project:

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

use Certhis\Sdk\Web3Helper;
use Certhis\Sdk\Certhis;
use Certhis\Sdk\Sign;

// Initialize the Web3Helper instance with a private key
$web3Helper = new Web3Helper('0xfc3f00a1acf34b12b38a91c89fc502b4851ed6f053be087b88286490966c7db0');
echo "Public address: " . $web3Helper->getPublicKey() . "\n";

// Initialize the Certhis class with an API key
$certhis = new Certhis('https://api.certhis.io', 'your_api_key');

// Initialize the Sign class with the Certhis instance
$sign = new Sign($certhis);

// Get the public address from the Web3Helper
$wallet = $web3Helper->getPublicKey();

// Retrieve a signature from Certhis API for the given wallet
$get_sign = $sign->get($wallet);
echo "Signature from Certhis: " . $get_sign["signature"] . "\n";

// Sign the retrieved message using Web3Helper
$signed = $web3Helper->signMessage($get_sign["signature"]);
echo "Signed Message: " . $signed . "\n";

// Verify the signed message using the Certhis Sign class
$check = $sign->check($wallet, $signed);
echo "Signature Verification Result: " . ($check ? "Valid" : "Invalid") . "\n";
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

680d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/109523233?v=4)[ruben-certhis](/maintainers/ruben-certhis)[@ruben-certhis](https://github.com/ruben-certhis)

---

Top Contributors

[![ruben-certhis](https://avatars.githubusercontent.com/u/109523233?v=4)](https://github.com/ruben-certhis "ruben-certhis (7 commits)")

### Embed Badge

![Health badge](/badges/certhis-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/certhis-sdk/health.svg)](https://phpackages.com/packages/certhis-sdk)
```

###  Alternatives

[drlecks/simple-web3-php

Web3 library in PHP

7744.0k2](/packages/drlecks-simple-web3-php)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

1110.7k7](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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