Skip to content

Commit f884527

Browse files
author
Roman Syroeshko
committed
Added backward compatibility for deprecated alignment options.
1 parent 015a34f commit f884527

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,20 @@ With PHPWord, you can create DOCX, ODT, or RTF documents dynamically using your
5353
PHPWord requires the following:
5454

5555
- PHP 5.3+
56-
- [Zip extension](http://php.net/manual/en/book.zip.php)
5756
- [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
57+
- [Zend\Validator component](http://framework.zend.com/manual/current/en/modules/zend.validator.html)
58+
- [Zip extension](http://php.net/manual/en/book.zip.php) (optional, used to write DOCX and ODT)
5859
- [GD extension](http://php.net/manual/en/book.image.php) (optional, used to add images)
5960
- [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php) (optional, used to write DOCX and ODT)
6061
- [XSL extension](http://php.net/manual/en/book.xsl.php) (optional, used to apply XSL style sheet to template )
6162
- [dompdf](https://github.com/dompdf/dompdf) (optional, used to write PDF)
6263

6364
## Installation
6465

65-
It is recommended that you install the PHPWord library [through composer](http://getcomposer.org/). To do so, add
66-
the following lines to your ``composer.json``.
66+
PHPWord is installed via [Composer](https://getcomposer.org/).
67+
You just need to [add dependency](https://getcomposer.org/doc/04-schema.md#package-links>) on PHPWord into your package.
68+
69+
Example:
6770

6871
```json
6972
{
@@ -73,21 +76,13 @@ the following lines to your ``composer.json``.
7376
}
7477
```
7578

76-
Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPWord/releases).
77-
In this case, you will have to register the autoloader.
78-
79-
```php
80-
require_once 'path/to/PhpWord/src/PhpWord/Autoloader.php';
81-
\PhpOffice\PhpWord\Autoloader::register();
82-
```
83-
8479
## Getting started
8580

8681
The following is a basic usage example of the PHPWord library.
8782

8883
```php
8984
<?php
90-
require_once 'src/PhpWord/Autoloader.php';
85+
require_once 'bootstrap.php';
9186
\PhpOffice\PhpWord\Autoloader::register();
9287

9388
// Creating the new document...

docs/general.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ folder <https://github.com/PHPOffice/PHPWord/tree/master/samples/>`__.
1313
.. code-block:: php
1414
1515
<?php
16-
require_once 'src/PhpWord/Autoloader.php';
16+
require_once 'bootstrap.php';
1717
\PhpOffice\PhpWord\Autoloader::register();
1818
1919
// Creating the new document...

docs/installing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ PHPWord is installed via `Composer <https://getcomposer.org/>`__.
2525
You just need to `add dependency <https://getcomposer.org/doc/04-schema.md#package-links>`__ on PHPWord into your package.
2626

2727
Example:
28+
2829
.. code-block:: json
2930
3031
{
@@ -37,6 +38,7 @@ If you are a developer or if you want to help us with testing then fetch the lat
3738
Notice: all contributions must be done against the developer branch.
3839

3940
Example:
41+
4042
.. code-block:: json
4143
4244
{

0 commit comments

Comments
 (0)