Download the PHP package benpoulson/php-imap without Composer
On this page you can find all versions of the php package benpoulson/php-imap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download benpoulson/php-imap
More information about benpoulson/php-imap
Files in benpoulson/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 5.6, 7.0, 7.1, 7.2 or 7.3
- 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
- PHP
iconv
extension must be present, ifmbstring
is not available; so make sure this line is active in your php.ini:extension=php_iconv.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
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
PHPUnit Tests
Before you can run the PHPUnit tests you may need to run composer install
to install all (development) dependencies.
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-imap Version *
ext-mbstring Version *
ext-iconv Version *