src/User.php
public function createOrganization($name, $billingMail, $displayName = '')
    {
        $options = ['json' => [
            'billing_email' => $billingMail,
        ]];

        if (!empty($displayName)) {
            $options['json']['display_name'] = $displayName;
        }

        $contents = $this
            ->call('PUT', self::ORGANIZATION_RESOURCE.'/'.$name, $options)
            ->getBody()
            ->getContents()
        ;

        return Organization::createFromJsonResponse($contents);
    }
public function createOrganization($name, $billingMail, $displayName = '')
    {
        $options = ['json' => [
            'billing_email' => $billingMail,
        ]];

        if (!empty($displayName)) {
            $options['json']['display_name'] = $displayName;
        }

        $contents = $this
            ->call('PUT', self::ORGANIZATION_RESOURCE.'/'.$name, $options)
            ->getBody()
            ->getContents()
        ;

        return Organization::createFromJsonResponse($contents);
    }
public function createOrganization ( $ name , $ billingMail , $ displayName = '' ) { $ options = [ 'json' => [ 'billing_email' => $ billingMail , ] ] ; if ( ! empty ( $ displayName ) ) { $ options [ 'json' ] [ 'display_name' ] = $ displayName ; } $ contents = $ this -> call ( 'PUT' , self :: ORGANIZATION_RESOURCE . '/' . $ name , $ options ) -> getBody ( ) -> getContents ( ) ; return Organization :: createFromJsonResponse ( $ contents ) ; }
Create an organization.

@param string $name        Organization name
@param string $billingMail Billing mail
@param string $displayName Optional display name

@throws GuzzleException
@throws \RuntimeException

@return Organization
Create an organization .