Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Logs in to an FTP connection
<?php ftp_login(FTP\Connection $ftp, string $username, string $password): bool
<?php     private function authenticate(FtpConnectionOptions $options, $connection): void

    {

        if ( ! @ftp_login($connection, $options->username(), $options->password())) {

            throw new UnableToAuthenticate();

        }

    }