jambtc/keydom-php-sdk

There is no license information available for the latest version (v1.0.0) of this package.

SDK PHP per Keydom

v1.0.0 2025-03-13 18:11 UTC

This package is auto-updated.

Last update: 2025-04-19 13:39:21 UTC


README

PHP SDK for communicating with the KEYDOM REST API

// Initialize AuthService 
$authService = new \Keydom\AuthService('https://keydom.example.com');

// Authenticate Channel In access
$authService->authenticate('username', 'password');

// Insert new user
$userController = new \Keydom\Controllers\UserController($authService);

$jsonBody = [
    "lastName" => "Doe",
    "firstName" => "Jhon",
    "registrationNumber" => "123",
    "address" => "95 Whitemarsh Street, Santa Clara, CA 95050",
    "phone" => "2025550196",
    "mobile" => "202-555-0196",
    "email" => "john.doe@email.com",
    "documentNumber" => "AG66677CJ"
];

$user = $userController->create($jsonBody);