File tree Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Original file line number Diff line number Diff line change 1- # hetzner-cloud-php-sdk
2- A PHP SDK for the Hetzner Cloud API
1+ [ ![ Latest Stable Version] ( https://poser.pugx.org/lkdevelopment/hetzner-cloud-php-sdk/version )] ( https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk )
2+ [ ![ License] ( https://poser.pugx.org/lkdevelopment/hetzner-cloud-php-sdk/license )] ( https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk )
3+ [ ![ Total Downloads] ( https://poser.pugx.org/lkdevelopment/hetzner-cloud-php-sdk/downloads )] ( https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk )
4+ # Hetzner Cloud PHP SDK
5+ A PHP SDK for the Hetzner Cloud API: https://docs.hetzner.cloud/
6+ ## Installation
7+
8+ You can install the package via composer:
9+
10+ ``` bash
11+ composer require lkdevelopment/hetzner-cloud-php-sdk
12+ ```
13+
14+ ## Usage
15+
16+ ``` php
17+ $hetznerClient = new \LKDev\HetznerCloud\HetznerAPIClient($apiKey);
18+ $servers = new \LKDev\HetznerCloud\Models\Servers\Servers();
19+ foreach ($servers->all() as $server) {
20+ echo 'ID: '.$server->id.' Name:'.$server->name.' Status: '.$server->status.PHP_EOL;
21+ }
22+ ```
23+
24+ ### Testing
25+
26+ ``` bash
27+ phpunit
28+ ```
29+
30+ ### Changelog
31+
32+ Please see [ CHANGELOG] ( CHANGELOG.md ) for more information what has changed recently.
33+
34+ ## Contributing
35+
36+ Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) for details.
37+
38+ ### Security
39+
40+ If you discover any security related issues, please email
[email protected] instead of using the issue tracker.
41+
42+ ## Credits
43+
44+ - [ Lukas Kämmerling] ( https://github.com/lkdevelopment )
45+ - [ All Contributors] ( ../../contributors )
46+
47+ ## License
48+
49+ The MIT License (MIT). Please see [ License File] ( LICENSE.md ) for more information.
You can’t perform that action at this time.
0 commit comments