public function createReseller($username, $password, $email, $domain, $package = [], $ip = 'shared')
    {
        $options = array_merge(
            ['ip' => $ip, 'domain' => $domain, 'serverip' => 'ON', 'dns' => 'OFF'],
            is_array($package) ? $package : ['package' => $package]
        );
        return $this->createAccount($username, $password, $email, $options, 'ACCOUNT_RESELLER', Reseller::class);
    }
public function createReseller($username, $password, $email, $domain, $package = [], $ip = 'shared')
    {
        $options = array_merge(
            ['ip' => $ip, 'domain' => $domain, 'serverip' => 'ON', 'dns' => 'OFF'],
            is_array($package) ? $package : ['package' => $package]
        );
        return $this->createAccount($username, $password, $email, $options, 'ACCOUNT_RESELLER', Reseller::class);
    }
public function createReseller ( $ username , $ password , $ email , $ domain , $ package = [ ] , $ ip = 'shared' ) { $ options = array_merge ( [ 'ip' => $ ip , 'domain' => $ domain , 'serverip' => 'ON' , 'dns' => 'OFF' ] , is_array ( $ package ) ? $ package : [ 'package' => $ package ] ) ; return $ this -> createAccount ( $ username , $ password , $ email , $ options , 'ACCOUNT_RESELLER' , Reseller :: class ) ; }
Creates a new Reseller level account.

@param string $username
@param string $password
@param string $email
@param string $domain
@param string|array $package Either a package name or an array of options for custom
@param string $ip shared, sharedreseller or assign. Defaults to 'shared'
@return Reseller
@url http://www.directadmin.com/api.html#create for options to use.
Creates a new Reseller level account .