Skip to content

Commit

Permalink
Documentation : Improved docs/install.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OlisaevAG authored and OlisaevAG committed Jan 29, 2025
1 parent ab4604c commit 1449e47
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@ require_once 'path/to/PHPWord/src/PhpWord/Autoloader.php';

The preferred method is the Composer one.

### Configuration

In order to configure you can create phpword.ini file and load configuration by calling Settings::loadConfig

``` php
<?php

Settings::loadConfig();

```

You can also specify the config file location. (Do not use phpword.ini file in vendor folder)

``` php
<?php

Settings::loadConfig(__DIR__ . '/../../phpword.ini');

```

## Samples

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 comments on commit 1449e47

Please sign in to comment.