Download the PHP package ghostcompiler/laravel-hetzner-storagebox without Composer
On this page you can find all versions of the php package ghostcompiler/laravel-hetzner-storagebox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ghostcompiler/laravel-hetzner-storagebox
More information about ghostcompiler/laravel-hetzner-storagebox
Files in ghostcompiler/laravel-hetzner-storagebox
Package laravel-hetzner-storagebox
Short Description Production-ready Laravel SDK for the Hetzner Storage Box API
License MIT
Informations about the package laravel-hetzner-storagebox
Laravel Hetzner Storage Box SDK
A premium, feature-rich PHP SDK and Laravel integration for the Hetzner Storage Box API, featuring rate-limit handling, automatic retries, and concurrent batch operations.
Features
- 100% Endpoint Coverage: Complete implementation of all storage boxes, subaccounts, snapshots, actions, and locations.
- Fail-Safe Retries & Backoff: Robust exponential backoff and rate-limit parsing handling
RateLimit-Resetresponse headers automatically. - Concurrently Pooled Processing: Execute calls asynchronously or concurrently in batches.
- Dynamic Filter Builder: Fluent query-building for filtering, page indexing, and sorting.
- Type-Safe DTOs: Automated data hydration into standard PHP DTO structures.
- Custom Exceptions: Specialized mapping of API status codes.
Installation
Install the package via Composer:
Publish the configuration file using our simplified command installer:
Add your Hetzner Storage Box Console API Token to your .env file:
Usage Examples
You can access the SDK in three ways:
-
Facade (Recommended for Laravel environments)
-
Global Helper (Convenience function)
- Dynamic Token Authentication (For multi-tenant or multi-account systems)
Storage Boxes
Listing and Filtering Storage Boxes
Paginated Results
Creating and Deleting a Storage Box
Triggering Storage Box Actions
Listing Storage Box Folders
Subaccounts
Manage directories and access protocols for subaccounts.
Snapshots
Manage point-in-time filesystem snapshots.
Asynchronous Requests
Batch Concurrent Operations
Exception Handling
All exceptions inherit from GhostCompiler\Hetzner\StorageBox\Exceptions\HetznerException.
Static Analysis & Linting
Run PHPStan static analysis:
Run Psalm static analysis:
Format code with Pint:
All versions of laravel-hetzner-storagebox with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
guzzlehttp/guzzle Version ^7.0