Download the PHP package phpfui/php-imap without Composer
On this page you can find all versions of the php package phpfui/php-imap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpfui/php-imap
More information about phpfui/php-imap
Files in phpfui/php-imap
Package php-imap
Short Description PHP IMAP with OAUTH2 for drop in replacement in PHP 8.4
License GPL-3.0-or-later
Homepage https://github.com/phpfui/php-imap2
Informations about the package php-imap
PHP IMAP Drop in Replacement for PHP 8.4
A drop in PHP replacement for the imap functions removed from PHP 8.4. If imap functions are detected, then the built in functions are used. So you can install this on PHP 8.2 or 8.3 and when you upgrade to PHP 8.4, it will continue to work.
Usage
This package is based on javanile/php-imap2
It was updated with arbor-education/php-imap2, as that seems to be the most maintained fork, as jaavanile/php-imap2 seems abandon. Since this a just a wrapper around the imap_ functions, it can easily be updated to a better IMAP library if needed.
Unimplemented functions
The following functions were not implemented in the original source:
- function imap_mail(string $to, string $subject, string $message, ?string $additional_headers = null, ?string $cc = null, ?string $bcc = null, ?string $return_path = null) : bool
- function imap_mail_compose(array $envelope, array $bodies) : string|false
- function imap_mime_header_decode(string $string) : array
- function imap_set_quota(IMAP\Connection $imap,string $quota_root): array|false
The following functions have no effect:
- function imap_8bit(string $string) : string
- function imap_mutf7_to_utf8(string $string) : string
- function imap_qprint(string $string) : string
Testing
Due to the complexities of setting up and running an actual IMAP server in GitHub Actions, test is confined to testing on live sites.
Anyone interested in contributing tests should look into updating the original tests in javanile/php-imap2 and get them to run under GitHub Actions. PRs welcome.
The following functions seem to work on live sites:
- imap_open()
- imap_close()
- imap_num_msg()
- imap_delete()
- imap_errors()
- imap_savebody()