-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,14 @@ ImapMailbox is PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extensio | |
|
||
{ | ||
"require": { | ||
"php-imap/php-imap": "2.*" | ||
"php-imap/php-imap": "~2.0" | ||
} | ||
} | ||
|
||
Or | ||
|
||
$ composer require php-imap/php-imap ~2.0 | ||
|
||
### Migration from `v1.*` to `v2.*` | ||
|
||
Just add following code in the head of your script: | ||
|
@@ -26,8 +30,8 @@ Just add following code in the head of your script: | |
use PhpImap\IncomingMailAttachment; | ||
|
||
### [Usage example](https://github.com/barbushin/php-imap/blob/master/example/index.php) | ||
```php | ||
|
||
```php | ||
$mailbox = new PhpImap\Mailbox('{imap.gmail.com:993/imap/ssl}INBOX', '[email protected]', '*********', __DIR__); | ||
$mails = array(); | ||
|
||
|