https://github.com/securitybunker/databunkerpro-php
DatabunkerPro PHP Lib
https://github.com/securitybunker/databunkerpro-php
Last synced: 3 months ago
JSON representation
DatabunkerPro PHP Lib
- Host: GitHub
- URL: https://github.com/securitybunker/databunkerpro-php
- Owner: securitybunker
- License: mit
- Created: 2025-04-27T20:57:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-14T17:22:57.000Z (about 1 year ago)
- Last Synced: 2025-07-30T05:54:40.783Z (10 months ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DatabunkerPro PHP Client Library
[](https://packagist.org/packages/securitybunker/databunkerpro-php)
[](https://packagist.org/packages/securitybunker/databunkerpro-php)
[](https://github.com/securitybunker/databunkerpro-php/actions)
[](https://packagist.org/packages/securitybunker/databunkerpro-php)
Official PHP client library for the DatabunkerPro API.
## Requirements
- PHP 5.6 or higher
- JSON extension
## Installation
Install the package using Composer:
```bash
composer require securitybunker/databunkerpro-php
```
## Usage
```php
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](https://databunker.org/databunker-pro-docs/introduction/).
## Testing
```bash
composer test
```
## Code Quality
Run static analysis:
```bash
composer phpstan
```
Check code style:
```bash
composer cs-check
```
Fix code style issues:
```bash
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](LICENSE) file for details.
## Support
For support, please contact hello@databunker.org or open an issue in the GitHub repository.