Skip to content

Commit 39cc10a

Browse files
committed
Update readme.md
1 parent 969f986 commit 39cc10a

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

readme.md

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,9 @@ You can install the package via composer:
2525
composer require directorytree/imapengine
2626
```
2727

28-
## Configuration
29-
30-
All default configuration options are shown below:
31-
32-
```php
33-
$config = [
34-
'port' => 993,
35-
'host' => '',
36-
'timeout' => 30,
37-
'debug' => false,
38-
'username' => '',
39-
'password' => '',
40-
'encryption' => 'ssl',
41-
'validate_cert' => true,
42-
'authentication' => 'plain',
43-
'proxy' => [
44-
'socket' => null,
45-
'username' => null,
46-
'password' => null,
47-
'request_fulluri' => false,
48-
],
49-
];
50-
```
28+
## Usage
5129

52-
## Connection
30+
### Connecting
5331

5432
To connect to a mailbox, create a new `Mailbox` instance with the above configuration options:
5533

@@ -78,7 +56,27 @@ $mailbox = new Mailbox([
7856
]);
7957
```
8058

81-
## Usage
59+
There are also many other configuration options available:
60+
61+
```php
62+
$mailbox = new Mailbox([
63+
'port' => 993,
64+
'host' => '',
65+
'timeout' => 30,
66+
'debug' => false,
67+
'username' => '',
68+
'password' => '',
69+
'encryption' => 'ssl',
70+
'validate_cert' => true,
71+
'authentication' => 'plain',
72+
'proxy' => [
73+
'socket' => null,
74+
'username' => null,
75+
'password' => null,
76+
'request_fulluri' => false,
77+
],
78+
]);
79+
```
8280

8381
### Retrieving Folders
8482

0 commit comments

Comments
 (0)