Merge pull request #374 from franzholz/patch-3

Update installing.rst
This commit is contained in:
Progi1984 2014-09-18 14:26:51 +02:00
commit dbe160d794
1 changed files with 12 additions and 4 deletions

View File

@ -44,10 +44,17 @@ To install via Composer, add the following lines to your
Manual install
~~~~~~~~~~~~~~
To install manually, `download PHPWord package from
github <https://github.com/PHPOffice/PHPWord/archive/master.zip>`__.
Extract the package and put the contents to your machine. To use the
library, include ``src/PhpWord/Autoloader.php`` in your script and
To install manually, you change to the webserver directory of your file system .
Then you have 2 possibilities.
1. `download PHPWord package from github <https://github.com/PHPOffice/PHPWord/archive/master.zip>`__.
Extract the package and put the contents to your machine.
2. Alternatively you can use Git to install it:
.. code-block:: console
git clone https://github.com/PHPOffice/PHPWord.git
To use the library, include ``src/PhpWord/Autoloader.php`` in your PHP script and
invoke ``Autoloader::register``.
.. code-block:: php
@ -55,6 +62,7 @@ invoke ``Autoloader::register``.
require_once '/path/to/src/PhpWord/Autoloader.php';
\PhpOffice\PhpWord\Autoloader::register();
Using samples
-------------