src/PlatformClient.php
public function createSubscription($region, $plan = 'development', $title = null, $storage = null, $environments = null, array $activationCallback = null)
    {
        $url = $this->accountsEndpoint . 'subscriptions';
        $values = $this->cleanRequest([
          'project_region' => $region,
          'plan' => $plan,
          'project_title' => $title,
          'storage' => $storage,
          'environments' => $environments,
          'activation_callback' => $activationCallback,
        ]);

        return Subscription::create($values, $url, $this->connector->getClient());
    }
public function createSubscription($region, $plan = 'development', $title = null, $storage = null, $environments = null, array $activationCallback = null)
    {
        $url = $this->accountsEndpoint . 'subscriptions';
        $values = $this->cleanRequest([
          'project_region' => $region,
          'plan' => $plan,
          'project_title' => $title,
          'storage' => $storage,
          'environments' => $environments,
          'activation_callback' => $activationCallback,
        ]);

        return Subscription::create($values, $url, $this->connector->getClient());
    }
public function createSubscription ( $ region , $ plan = 'development' , $ title = null , $ storage = null , $ environments = null , array $ activationCallback = null ) { $ url = $ this -> accountsEndpoint . 'subscriptions' ; $ values = $ this -> cleanRequest ( [ 'project_region' => $ region , 'plan' => $ plan , 'project_title' => $ title , 'storage' => $ storage , 'environments' => $ environments , 'activation_callback' => $ activationCallback , ] ) ; return Subscription :: create ( $ values , $ url , $ this -> connector -> getClient ( ) ) ; }
Create a new Platform.sh subscription.

@param string $region             The region ID. See getRegions().
@param string $plan               The plan. See Subscription::$availablePlans.
@param string $title              The project title.
@param int    $storage            The storage of each environment, in MiB.
@param int    $environments       The number of available environments.
@param array  $activationCallback An activation callback for the subscription.

@see PlatformClient::getRegions()
@see Subscription::wait()

@return Subscription
A subscription, representing a project. Use Subscription::wait() or
similar code to wait for the subscription's project to be provisioned
and activated.
Create a new Platform . sh subscription .