PHPWord/docs/installing.rst

57 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2014-03-15 10:00:09 +01:00
.. _setup:
2014-04-26 14:21:52 +07:00
Installing/configuring
======================
2014-03-19 23:08:44 +07:00
Requirements
------------
Mandatory:
2016-06-28 21:37:36 +04:00
- PHP 5.3.3+
- `XML Parser <http://www.php.net/manual/en/xml.installation.php>`__ extension
- `Laminas Escaper <https://docs.laminas.dev/laminas-escaper/intro/>`__ component
2014-03-19 23:08:44 +07:00
Optional:
2014-03-19 23:08:44 +07:00
- `Zip <http://php.net/manual/en/book.zip.php>`__ extension
- `GD <http://php.net/manual/en/book.image.php>`__ extension
- `XMLWriter <http://php.net/manual/en/book.xmlwriter.php>`__ extension
- `XSL <http://php.net/manual/en/book.xsl.php>`__ extension
- `dompdf <https://github.com/dompdf/dompdf>`__ library
2014-03-19 23:08:44 +07:00
2014-03-15 10:00:09 +01:00
Installation
2014-03-19 23:08:44 +07:00
------------
PHPWord is installed via `Composer <https://getcomposer.org/>`__.
You just need to `add dependency <https://getcomposer.org/doc/04-schema.md#package-links>`__ on PHPWord into your package.
2014-03-19 23:08:44 +07:00
Example:
2014-03-21 10:07:17 +01:00
.. code-block:: json
2014-03-15 10:00:09 +01:00
{
"require": {
2021-02-12 22:27:50 +01:00
"phpoffice/phpword": "v0.18.*"
2014-03-15 10:00:09 +01:00
}
}
If you are a developer or if you want to help us with testing then fetch the latest branch for developers.
Notice: all contributions must be done against the developer branch.
Example:
.. code-block:: json
{
"require": {
"phpoffice/phpword": "dev-develop"
}
}
2014-03-19 23:08:44 +07:00
Using samples
-------------
2018-04-02 14:47:18 +02:00
More examples are provided in the ``samples`` directory.
For an easy access to those samples launch ``php -S localhost:8000`` in the samples directory then browse to http://localhost:8000 to view the samples.