src/PlatformClient.php
public function getSubscriptionEstimate($plan, $storage, $environments, $users)
    {
        $options = [];
        $options['query'] = [
            'plan' => $plan,
            'storage' => $storage,
            'environments' => $environments,
            'user_licenses' => $users,
        ];
        try {
            return $this->simpleGet($this->accountsEndpoint . 'estimate', $options);
        } catch (BadResponseException $e) {
            throw ApiResponseException::create($e->getRequest(), $e->getResponse(), $e->getPrevious());
        }
    }
public function getSubscriptionEstimate($plan, $storage, $environments, $users)
    {
        $options = [];
        $options['query'] = [
            'plan' => $plan,
            'storage' => $storage,
            'environments' => $environments,
            'user_licenses' => $users,
        ];
        try {
            return $this->simpleGet($this->accountsEndpoint . 'estimate', $options);
        } catch (BadResponseException $e) {
            throw ApiResponseException::create($e->getRequest(), $e->getResponse(), $e->getPrevious());
        }
    }
public function getSubscriptionEstimate ( $ plan , $ storage , $ environments , $ users ) { $ options = [ ] ; $ options [ 'query' ] = [ 'plan' => $ plan , 'storage' => $ storage , 'environments' => $ environments , 'user_licenses' => $ users , ] ; try { return $ this -> simpleGet ( $ this -> accountsEndpoint . 'estimate' , $ options ) ; } catch ( BadResponseException $ e ) { throw ApiResponseException :: create ( $ e -> getRequest ( ) , $ e -> getResponse ( ) , $ e -> getPrevious ( ) ) ; } }
Estimate the cost of a subscription.

@param string $plan         The plan (see Subscription::$availablePlans).
@param int    $storage      The allowed storage per environment (in GiB).
@param int    $environments The number of environments.
@param int    $users        The number of users.

@return array An array containing at least 'total' (a formatted price).
Estimate the cost of a subscription .