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