volodymyr68/keycrm_php_sdk

This package implements API methods for KeyCrm.

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

This package is not auto-updated.

Last update: 2025-07-27 10:57:49 UTC


README

This package provides an SDK for interacting with the KeyCRM API. It allows developers to integrate KeyCRM features into their PHP applications seamlessly.

Installation

To install this package, use Composer:

composer require volodymyr68/keycrm_php_sdk

Requirements

  • PHP 8.0 - 8.4
  • OpenSSL extension
  • cURL extension

Usage

Initialize the SDK

To start using the SDK, include the KeycrmSdk\Keycrm class and initialize it with your API key:

require 'vendor/autoload.php';

use KeycrmSdk\Keycrm;

$apiKey = 'your-api-key-here';
$keycrm = new Keycrm($apiKey);

Example API Calls

Get Records

$records = $keycrm->getRecords();
print_r($records);

Create a Record

$newRecord = $keycrm->createRecord([
    'name' => 'John Doe',
    'email' => 'johndoe@example.com'
]);
print_r($newRecord);

Update a Record

$recordId = '123456';
$updatedRecord = $keycrm->updateRecord($recordId, [
    'email' => 'newemail@example.com'
]);
print_r($updatedRecord);

Delete a Record

$recordId = '123456';
$response = $keycrm->deleteRecord($recordId);
print_r($response);

License

This package is released under the MIT License.