Download the PHP package iiifx/php-imap without Composer
On this page you can find all versions of the php package iiifx/php-imap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iiifx/php-imap
More information about iiifx/php-imap
Files in iiifx/php-imap
Package php-imap
Short Description Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)
License MIT
Homepage https://github.com/barbushin/php-imap
Informations about the package php-imap
PHP IMAP
Initially released in December 2012, the PHP IMAP Mailbox is a powerful and open source library to connect to a mailbox by POP3, IMAP and NNTP using the PHP IMAP extension. This library allows you to fetch emails from your email server. Extend the functionality or create powerful web applications to handle your incoming emails.
Features
- Connect to mailbox by POP3/IMAP/NNTP, using PHP IMAP extension
- Get emails with attachments and inline images
- Get emails filtered or sorted by custom criteria
- Mark emails as seen/unseen
- Delete emails
- Manage mailbox folders
Requirements
PHP Version | php-imap Version |
---|---|
5.6 | 3.x |
7.0 | 3.x |
7.1 | 3.x |
7.2 | 3.x, 4.x |
7.3 | 3.x, 4.x |
7.4 | >3.0.33, 4.x |
- PHP
fileinfo
extension must be present; so make sure this line is active in your php.ini:extension=php_fileinfo.dll
- PHP
iconv
extension must be present; so make sure this line is active in your php.ini:extension=php_iconv.dll
- PHP
imap
extension must be present; so make sure this line is active in your php.ini:extension=php_imap.dll
- PHP
mbstring
extension must be present; so make sure this line is active in your php.ini:extension=php_mbstring.dll
Installation by Composer
Install the latest available release:
$ composer require php-imap/php-imap
Install the latest available and stable source code from master
, which is may not released / tagged yet:
$ composer require php-imap/php-imap:dev-master
Install the latest available and may unstable source code from develop
, which is may not properly tested yet:
$ composer require php-imap/php-imap:dev-develop
Run Tests
Before you can run the any tests you may need to run composer install
to install all (development) dependencies.
Run all tests
You can run all available tests by running the following command (inside of the installed php-imap
directory): composer run tests
Run only PHPUnit tests
You can run all PHPUnit tests by running the following command (inside of the installed php-imap
directory): php vendor/bin/phpunit --testdox
Integration with frameworks
- Symfony - https://github.com/secit-pl/imap-bundle
Getting Started Example
Below, you'll find an example code how you can use this library. For further information and other examples, you may take a look at the wiki.
Method imap() allows to call any imap function in a context of the the instance:
Some request require much time and resources:
Recommended
- Google Chrome extension PHP Console
- Google Chrome extension JavaScript Errors Notifier
All versions of php-imap with dependencies
ext-fileinfo Version *
ext-iconv Version *
ext-imap Version *
ext-mbstring Version *