Official PHP client library for the DatabunkerPro API.
- PHP 5.6 or higher
- JSON extension
Install the package using Composer:
composer require securitybunker/databunkerpro-php
<?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'
]);
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.
composer test
Run static analysis:
composer phpstan
Check code style:
composer cs-check
Fix code style issues:
composer cs-fix
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please contact hello@databunker.org or open an issue in the GitHub repository.