Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
barbushin committed Jul 5, 2015
1 parent 6c4e45e commit 5188586
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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', 'some@gmail.com', '*********', __DIR__);
$mails = array();

Expand Down

0 comments on commit 5188586

Please sign in to comment.