Laravel Hetzner Cloud

PHP MIT

Production-ready Laravel SDK for the Hetzner Cloud API with support for servers, volumes, networks, firewalls, load balancers, SSH keys, floating IPs, and more.

Stars
19
Forks
0
Downloads
2,275
Open Issues
0
Files main

Repository Files

Loading file structure...
src/Managers/PricingManager.php
<?php

namespace Vendor\HetznerCloud\Managers;

use Vendor\HetznerCloud\DTOs\Pricing;

class PricingManager extends AbstractManager
{
    public function all()
    {
        $response = $this->getRequest('pricing');

        return $this->hydrate($response, function (array $data) {
            return Pricing::fromArray($data['pricing'] ?? []);
        });
    }

    public function get()
    {
        return $this->all();
    }
}