volodymyr68/keycrm_php_sdk
最新稳定版本:v1.0.0
Composer 安装命令:
composer require volodymyr68/keycrm_php_sdk
包简介
This package implements API methods for KeyCrm.
关键字:
README 文档
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.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-22