Document PHP 7.1 support

Fixes #2302
This commit is contained in:
Adrien Crivelli 2022-10-24 11:08:15 +02:00
parent f92ec7e3ad
commit e81520f94c
No known key found for this signature in database
GPG Key ID: 16D79B903B4B5874
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ With PHPWord, you can create OOXML, ODF, or RTF documents dynamically using your
PHPWord requires the following: PHPWord requires the following:
- PHP 7.4+ - PHP 7.1+
- [XML Parser extension](http://www.php.net/manual/en/xml.installation.php) - [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
- [Laminas Escaper component](https://docs.laminas.dev/laminas-escaper/intro/) - [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) - [Zip extension](http://php.net/manual/en/book.zip.php) (optional, used to write OOXML and ODF)

View File

@ -9,7 +9,7 @@ Requirements
Mandatory: Mandatory:
- composer - composer
- PHP 7.4+ - PHP 7.1+
- `XML Parser <http://www.php.net/manual/en/xml.installation.php>`__ extension - `XML Parser <http://www.php.net/manual/en/xml.installation.php>`__ extension
Optional: Optional:

View File

@ -4,7 +4,7 @@ include_once 'Sample_Header.php';
use PhpOffice\PhpWord\Settings; use PhpOffice\PhpWord\Settings;
$requirements = [ $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')], 'xml' => ['PHP extension XML', extension_loaded('xml')],
'temp' => ['Temp folder "<code>' . Settings::getTempDir() . '</code>" is writable', is_writable(Settings::getTempDir())], 'temp' => ['Temp folder "<code>' . Settings::getTempDir() . '</code>" is writable', is_writable(Settings::getTempDir())],
'zip' => ['PHP extension ZipArchive (optional)', extension_loaded('zip')], 'zip' => ['PHP extension ZipArchive (optional)', extension_loaded('zip')],