承接 securitybunker/databunkerpro-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

securitybunker/databunkerpro-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require securitybunker/databunkerpro-php

包简介

PHP client library for DatabunkerPro API

README 文档

README

Latest Version Total Downloads Build Status License

Official PHP client library for the DatabunkerPro API.

Requirements

  • PHP 5.6 or higher
  • JSON extension

Installation

Install the package using Composer:

composer require securitybunker/databunkerpro-php

Usage

<?php

require 'vendor/autoload.php';

use DatabunkerPro\DatabunkerproAPI;

// Initialize the client
$api = new DatabunkerproAPI(
    'https://your-databunker-instance.com',
    'your-x-bunker-token',
    'your-tenant-id'
);

// Create a user
$result = $api->createUser([
    'email' => 'user@example.com',
    'name' => 'John Doe'
]);

// Get user information
$user = $api->getUser('email', 'user@example.com');

// Update user
$api->updateUser('email', 'user@example.com', [
    'name' => 'John Smith'
]);

Available Methods

The library provides methods for all DatabunkerPro API endpoints:

  • User Management
  • App Data Management
  • Legal Basis Management
  • Agreement Management
  • Processing Activity Management
  • Connector Management
  • Group Management
  • Token Management
  • Audit Management
  • Tenant Management
  • Role Management
  • Policy Management
  • Session Management

For detailed API documentation, please refer to the DatabunkerPro API Documentation.

Testing

composer test

Code Quality

Run static analysis:

composer phpstan

Check code style:

composer cs-check

Fix code style issues:

composer cs-fix

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support, please contact hello@databunker.org or open an issue in the GitHub repository.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-28