From e81520f94c0cd300cda043ed73c8024e0fad2735 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Mon, 24 Oct 2022 11:08:15 +0200 Subject: [PATCH] Document PHP 7.1 support Fixes #2302 --- README.md | 2 +- docs/installing.rst | 2 +- samples/index.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3d84ad74f7..6fb2e85459 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ With PHPWord, you can create OOXML, ODF, or RTF documents dynamically using your PHPWord requires the following: -- PHP 7.4+ +- PHP 7.1+ - [XML Parser extension](http://www.php.net/manual/en/xml.installation.php) - [Laminas Escaper component](https://docs.laminas.dev/laminas-escaper/intro/) - [Zip extension](http://php.net/manual/en/book.zip.php) (optional, used to write OOXML and ODF) diff --git a/docs/installing.rst b/docs/installing.rst index 4f3c3a2a3b..bed177192d 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -9,7 +9,7 @@ Requirements Mandatory: - composer -- PHP 7.4+ +- PHP 7.1+ - `XML Parser `__ extension Optional: diff --git a/samples/index.php b/samples/index.php index c47deebe46..a867eb3d80 100644 --- a/samples/index.php +++ b/samples/index.php @@ -4,7 +4,7 @@ use PhpOffice\PhpWord\Settings; $requirements = [ - 'php' => ['PHP 7.4', version_compare(PHP_VERSION, '7.4', '>=')], + 'php' => ['PHP 7.1', version_compare(PHP_VERSION, '7.1', '>=')], 'xml' => ['PHP extension XML', extension_loaded('xml')], 'temp' => ['Temp folder "' . Settings::getTempDir() . '" is writable', is_writable(Settings::getTempDir())], 'zip' => ['PHP extension ZipArchive (optional)', extension_loaded('zip')],