Skip to content

Commit 1449e47

Browse files
OlisaevAGOlisaevAG
authored andcommitted
Documentation : Improved docs/install.md
1 parent ab4604c commit 1449e47

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/install.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ require_once 'path/to/PHPWord/src/PhpWord/Autoloader.php';
4545

4646
The preferred method is the Composer one.
4747

48+
### Configuration
49+
50+
In order to configure you can create phpword.ini file and load configuration by calling Settings::loadConfig
51+
52+
``` php
53+
<?php
54+
55+
Settings::loadConfig();
56+
57+
```
58+
59+
You can also specify the config file location. (Do not use phpword.ini file in vendor folder)
60+
61+
``` php
62+
<?php
63+
64+
Settings::loadConfig(__DIR__ . '/../../phpword.ini');
65+
66+
```
67+
4868
## Samples
4969

5070
After installation, you can browse and use the samples that we've provided, either by command line or using browser. If you can access your PhpWord library folder using browser, point your browser to the `samples` folder, e.g. `http://localhost/PhpWord/samples/`.

0 commit comments

Comments
 (0)