src/Connection.php

imap · src/Connection.php · php · MIT
email

IMAP connection handling with mailbox operations and error handling.

// Source: https://github.com/ddeboer/imap | License: MIT | Copyright 2013 David de Boer <david@ddeboer.nl>
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace Ddeboer\Imap;

use Ddeboer\Imap\Exception\CreateMailboxException;
use Ddeboer\Imap\Exception\DeleteMailboxException;
use Ddeboer\Imap\Exception\ImapGetmailboxesException;
use Ddeboer\Imap\Exception\ImapNumMsgException;
use Ddeboer\Imap\Exception\ImapQuotaException;
use Ddeboer\Imap\Exception\MailboxDoesNotExistException;
use Ddeboer\Imap\Exception\SubscribeMailboxException;

/**
 * A connection to an IMAP server that is authenticated for a user.
 */
final class Connection implements ConnectionInterface
{
    private ImapResourceInterface $resource;
    private string $server;
 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key