Skip to content

Commit

Permalink
Documentation : Improved docs/install.md (PHPOffice#2734)
Browse files Browse the repository at this point in the history
* Update composer.json

azamat8405/phpword

* fix: package name

* Documentation : Improved docs/install.md

---------

Co-authored-by: OlisaevAG <[email protected]>
  • Loading branch information
Azamat8405 and OlisaevAG authored Jan 29, 2025
1 parent 3b12b4e commit 269a810
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 269a810

Please sign in to comment.