You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DOMPDF module integrates the DOMPDF library with Zend Framework 2 with minimal effort on the consumer's end.
6
+
The DOMPDF module integrates the DOMPDF library with Laminas with minimal effort on the consumer's end.
7
7
8
8
## Requirements
9
-
-[Laminas](https://getlaminas.org/)
9
+
-[Laminas](https://getlaminas.org/)
10
10
11
11
## Installation
12
12
Installation of DOMPDFModule uses PHP Composer. For more information about
13
13
PHP Composer, please visit the official [PHP Composer site](http://getcomposer.org/).
14
14
15
15
#### Installation steps
16
16
17
-
1.`cd my/project/directory`
18
-
2. Add the module to the project by:
19
-
17
+
1.`cd my/project/directory`
18
+
2. Add the module to the project by:
19
+
20
20
composer require netiul/dompdf-module
21
21
22
-
3. open `my/project/directory/config/application.config.php` and add the following key to your `modules`:
22
+
3. open `my/project/directory/config/application.config.php` and add the following key to your `modules`:
23
23
24
-
```php
25
-
'DOMPDFModule',
26
-
```
24
+
```php
25
+
'DOMPDFModule',
26
+
```
27
27
#### Configuration options
28
28
You can override options via the `dompdf_module` key in your local or global config files. See DOMPDFModule/config/module.config.php for config options.
29
29
@@ -34,7 +34,7 @@ You can override options via the `dompdf_module` key in your local or global con
34
34
35
35
namespace Application\Controller;
36
36
37
-
use Zend\Mvc\Controller\AbstractActionController;
37
+
use Laminas\Mvc\Controller\AbstractActionController;
38
38
use DOMPDFModule\View\Model\PdfModel;
39
39
40
40
class ReportController extends AbstractActionController
@@ -67,23 +67,10 @@ So you want to contribute? Fantastic! Don't worry, it's easy. Local builds, test
67
67
docker build -t dino/dompdf-module .
68
68
docker run -v composer-cache:/var/lib/composer -v ${PWD}:/opt/app dino/dompdf-module
69
69
```
70
-
70
+
71
71
Super easy, right? Here's a quick walk through as to what's going on.
72
72
73
73
*`docker build -t dino/dompdf-module .` builds a docker image that will be used for each run (i.e. each time `docker run` is executed) and tags it with the name `dino/dompdf-module`.
74
74
*`docker run -v composer-cache:/var/lib/composer -v ${PWD}:/opt/app dino/dompdf-module` runs the default build in a new Docker container derived from the image tagged `dino/dompdf-module`. The root of the project and PHP Composer cache volume are mounted so that artifacts generated during the build process are available to you on your local machine.
75
75
76
76
**Note:** You only need to run the first command once in order to build the image. The second command is what executes the build (build, tests, code quality checks, etc.).
77
-
78
-
### Other Supported PHP Versions
79
-
By default, builds executed using Docker are done so using the [latest stable version of PHP](http://php.net/supported-versions.php). If you're adventurous you can execute builds against other [supported versions](http://php.net/supported-versions.php) of PHP.
0 commit comments