Classes, interfaces, and traits

AbstractHeader

Abstract base class representing a mime email's header.

« More »

AddressHeader

Reads an address list header using the AddressBaseConsumer.

« More »

AbstractConsumer

Abstract base class for all header token consumers.

« More »

AddressBaseConsumer

Serves as a base-consumer for recipient/sender email address headers (like From and To).

« More »

AddressConsumer

Parses a single part of an address header.

« More »

AddressGroupConsumer

Parses a single group of addresses (as a named-group part of an address header).

« More »

CommentConsumer

Consumes all tokens within parentheses as comments.

« More »

ConsumerService

Simple service provider for consumer singletons.

« More »

DateConsumer

Parses a date header into a Part\DatePart taking care of comment and quoted parts as necessary.

« More »

GenericConsumer

A minimal implementation of AbstractConsumer defining a CommentConsumer and QuotedStringConsumer as sub-consumers, and splitting tokens by whitespace.

« More »

ParameterConsumer

Reads headers separated into parameters consisting of a main value, and subsequent name/value pairs - for example text/html; charset=utf-8.

« More »

QuotedStringConsumer

Represents a quoted part of a header value starting at a single quote, and ending at the next single quote.

« More »

SubjectConsumer

Extends GenericConsumer to remove its sub consumers.

« More »

DateHeader

Reads a DatePart value header in either RFC 2822 or RFC 822 format.

« More »

GenericHeader

Reads the header using GenericConsumer.

« More »

HeaderFactory

Constructs various AbstractHeader types depending on the type of header passed.

« More »

ParameterHeader

Represents a header containing a primary value part and subsequent name/value parts using a ParameterConsumer.

« More »

AddressGroupPart

Holds a group of addresses, and an optional group name.

« More »

AddressPart

Holds a single address or name/address pair.

« More »

CommentPart

Represents a mime header comment -- text in a structured mime header value existing within parentheses.

« More »

DatePart

Parses a header into a DateTime object.

« More »

HeaderPart

Abstract base class representing a single part of a parsed header.

« More »

HeaderPartFactory

Constructs and returns HeaderPart objects.

« More »

LiteralPart

A literal header string part. The value of the part is stripped of CR and LF characters, but otherwise not transformed or changed in any way.

« More »

MimeLiteralPart

Represents a single mime header part token, with the possibility of it being MIME-Encoded as per RFC-2047.

« More »

MimeLiteralPartFactory

Extends HeaderPartFactory to instantiate MimeLiteralParts for its newInstance function.

« More »

ParameterPart

Represents a name/value pair part of a header.

« More »

Token

Holds a string value token that will require additional processing by a consumer prior to returning to a client.

« More »

SubjectHeader

Reads the header using a SubjectConsumer.

« More »

MailMimeParser

Parses a MIME message into a \ZBateson\MailMimeParser\Message object.

« More »

Message

A parsed mime message with optional mime parts depending on its type.

« More »

MessageParser

Parses a mail mime message into its component parts. To invoke, call MailMimeParser::parse.

« More »

MimePart

Represents a single part of a multi-part mime message.

« More »

MimePartFactory

Description of MimePartFactory

« More »

NonMimePart

Represents part of a non-mime message. The part could either be a plain text part or a uuencoded attachment and could be extended for other pre-mime message encoding types.

« More »

PartFilter

Provides a way to define a filter of MimeParts for use in various calls to add/remove MimeParts.

« More »

UUEncodedPart

A specialized NonMimePart representing a uuencoded part.

« More »

MessageWriter

Writes out a message in a mail-compliant format.

« More »

MessageWriterService

Simple service provider for MimePartWriter singletons.

« More »

MimePartWriter

Writes a MimePart to a resource handle.

« More »

SimpleDi

Dependency injection container for use by ZBateson\MailMimeParser - because a more complex one seems like overkill.

« More »

Base64DecodeStreamFilter

Unfortunately neither the built-in base64 decoder in PHP, nor the HHVM implementation for their ConvertFilter seem to handle large streams correctly. There appears to be no provision for data coming in when they're not split on 4 byte-chunks (each 4-byte chunk of base-64 encoded data translates to 3-bytes of unencoded data).

« More »

Base64EncodeStreamFilter

Unfortunately neither the built-in base64 encoder in PHP, nor the HHVM implementation for their ConvertFilter seem to handle large streams correctly. There appears to be no provision for data coming in when they're not split on 3 byte-chunks (each 3-byte chunk trnaslates to 4-bytes of base64 encoded data).

« More »

CharsetStreamFilter

Implements a filter converting the stream's character encoding while reading from it, so the charset of strings returned by read operations are guaranteed to be encoded to UTF-8.

« More »

ConvertStreamFilter

« More »

CharsetConverter

Helper class for converting strings between charsets.

« More »

PartStream

Implementation of a stream wrapper representing content for a specific MIME part of an email message.

« More »

PartStreamRegistry

Factory class for PartStream objects and registration class for Message handles.

« More »

StreamLeftover

Unfortunately using a class object specifically to handle leftovers seems to be the only way. The last call to php_user_filter with $closing set to true doesn't seem to be 'writable' to $out, if the entire stream is in a single buffer. If, however, the stream is large enough to be buffered multiple times, the before last call seems to both contain data and have $closing set to true.

« More »

UUDecodeStreamFilter

Stream filter converts uuencoded text to its raw binary.

« More »

UUEncodeStreamFilter

Stream filter converts binary streams to uuencoded text.

« More »