Skip to content

Commit 5188586

Browse files
committed
Update README.md
1 parent 6c4e45e commit 5188586

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ ImapMailbox is PHP class to access mailbox by POP3/IMAP/NNTP using IMAP extensio
1313

1414
{
1515
"require": {
16-
"php-imap/php-imap": "2.*"
16+
"php-imap/php-imap": "~2.0"
1717
}
1818
}
1919

20+
Or
21+
22+
$ composer require php-imap/php-imap ~2.0
23+
2024
### Migration from `v1.*` to `v2.*`
2125

2226
Just add following code in the head of your script:
@@ -26,8 +30,8 @@ Just add following code in the head of your script:
2630
use PhpImap\IncomingMailAttachment;
2731

2832
### [Usage example](https://github.com/barbushin/php-imap/blob/master/example/index.php)
29-
```php
3033

34+
```php
3135
$mailbox = new PhpImap\Mailbox('{imap.gmail.com:993/imap/ssl}INBOX', '[email protected]', '*********', __DIR__);
3236
$mails = array();
3337

0 commit comments

Comments
 (0)