src/Administration.php
public function createUserWithUniqueUsername($email, $password, $username = null) {
		return $this->createUserInternal(true, $email, $password, $username, null);
	}
public function createUserWithUniqueUsername($email, $password, $username = null) {
		return $this->createUserInternal(true, $email, $password, $username, null);
	}
public function createUserWithUniqueUsername ( $ email , $ password , $ username = null ) { return $ this -> createUserInternal ( true , $ email , $ password , $ username , null ) ; }
Creates a new user while ensuring that the username is unique

@param string $email the email address to register
@param string $password the password for the new account
@param string|null $username (optional) the username that will be displayed
@return int the ID of the user that has been created (if any)
@throws InvalidEmailException if the email address was invalid
@throws InvalidPasswordException if the password was invalid
@throws UserAlreadyExistsException if a user with the specified email address already exists
@throws DuplicateUsernameException if the specified username wasn't unique
@throws AuthError if an internal problem occurred (do *not* catch)
Creates a new user while ensuring that the username is unique