public function createUser($username, $password, $email, $domain, $ip, $package = [])
    {
        $options = array_merge(
            ['ip' => $ip, 'domain' => $domain],
            is_array($package) ? $package : ['package' => $package]
        );
        return $this->createAccount($username, $password, $email, $options, 'ACCOUNT_USER', User::class);
    }
public function createUser($username, $password, $email, $domain, $ip, $package = [])
    {
        $options = array_merge(
            ['ip' => $ip, 'domain' => $domain],
            is_array($package) ? $package : ['package' => $package]
        );
        return $this->createAccount($username, $password, $email, $options, 'ACCOUNT_USER', User::class);
    }
public function createUser ( $ username , $ password , $ email , $ domain , $ ip , $ package = [ ] ) { $ options = array_merge ( [ 'ip' => $ ip , 'domain' => $ domain ] , is_array ( $ package ) ? $ package : [ 'package' => $ package ] ) ; return $ this -> createAccount ( $ username , $ password , $ email , $ options , 'ACCOUNT_USER' , User :: class ) ; }
Creates a new user on the server.

@param string $username Login for the new user
@param string $password Password for the new user
@param string $email Email for the new user
@param string $domain Default domain for the new user
@param string $ip IP for the user
@param string|array $package Either a package name or an array of options for custom
@return User Newly created user
@url http://www.directadmin.com/api.html#create for options to use.
Creates a new user on the server .