File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,7 @@ PHPWord requires the following:
62
62
63
63
- PHP 5.3.3+
64
64
- [ XML Parser extension] ( http://www.php.net/manual/en/xml.installation.php )
65
- - [ Zend\Escaper component] ( http://framework.zend.com/manual/current/en/modules/zend.escaper.introduction.html )
66
- - [ Zend\Stdlib component] ( http://framework.zend.com/manual/current/en/modules/zend.stdlib.hydrator.html )
65
+ - [ Laminas Escaper component] ( https://docs.laminas.dev/laminas-escaper/intro/ )
67
66
- [ Zip extension] ( http://php.net/manual/en/book.zip.php ) (optional, used to write OOXML and ODF)
68
67
- [ GD extension] ( http://php.net/manual/en/book.image.php ) (optional, used to add images)
69
68
- [ XMLWriter extension] ( http://php.net/manual/en/book.xmlwriter.php ) (optional, used to write OOXML and ODF)
Original file line number Diff line number Diff line change 60
60
"require" : {
61
61
"php" : " ^5.3.3 || ^7.0 || ^8.0" ,
62
62
"ext-xml" : " *" ,
63
- "zendframework/zend -escaper" : " ^2.2" ,
63
+ "laminas/laminas -escaper" : " ^2.2" ,
64
64
"phpoffice/common" : " ^0.2.9"
65
65
},
66
66
"require-dev" : {
76
76
"mpdf/mpdf" : " 5.7.4 || 6.* || 7.* || 8.*" ,
77
77
"php-coveralls/php-coveralls" : " 1.1.0 || ^2.0"
78
78
},
79
+ "replace" : {
80
+ "laminas/laminas-zendframework-bridge" : " *"
81
+ },
79
82
"suggest" : {
80
83
"ext-zip" : " Allows writing OOXML and ODF" ,
81
84
"ext-gd2" : " Allows adding images" ,
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ Mandatory:
10
10
11
11
- PHP 5.3.3+
12
12
- `XML Parser <http://www.php.net/manual/en/xml.installation.php >`__ extension
13
- - `Zend\\ Escaper <http://framework.zend.com/manual/current/en/modules/zend.escaper.introduction.html >`__ component
14
- - Zend\\ Stdlib component
15
- - `Zend\\ Validator <http://framework.zend.com/manual/current/en/modules/zend.validator.html >`__ component
13
+ - `Laminas Escaper <https://docs.laminas.dev/laminas-escaper/intro/ >`__ component
16
14
17
15
Optional:
18
16
Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord \Writer \HTML \Element ;
19
19
20
+ use Laminas \Escaper \Escaper ;
20
21
use PhpOffice \PhpWord \Element \AbstractElement as Element ;
21
22
use PhpOffice \PhpWord \Writer \AbstractWriter ;
22
- use Zend \Escaper \Escaper ;
23
23
24
24
/**
25
25
* Abstract HTML element writer
@@ -50,7 +50,7 @@ abstract class AbstractElement
50
50
protected $ withoutP = false ;
51
51
52
52
/**
53
- * @var \Zend \Escaper\Escaper|\PhpOffice\PhpWord\Escaper\AbstractEscaper
53
+ * @var \Laminas \Escaper\Escaper|\PhpOffice\PhpWord\Escaper\AbstractEscaper
54
54
*/
55
55
protected $ escaper ;
56
56
Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord \Writer \HTML \Part ;
19
19
20
+ use Laminas \Escaper \Escaper ;
20
21
use PhpOffice \PhpWord \Exception \Exception ;
21
22
use PhpOffice \PhpWord \Writer \AbstractWriter ;
22
- use Zend \Escaper \Escaper ;
23
23
24
24
/**
25
25
* @since 0.11.0
@@ -32,7 +32,7 @@ abstract class AbstractPart
32
32
private $ parentWriter ;
33
33
34
34
/**
35
- * @var \Zend \Escaper\Escaper
35
+ * @var \Laminas \Escaper\Escaper
36
36
*/
37
37
protected $ escaper ;
38
38
You can’t perform that action at this time.
0 commit comments