@@ -48,6 +48,8 @@ PHPPresentation requires the following:
48
48
49
49
### Installation
50
50
51
+ #### Composer method
52
+
51
53
It is recommended that you install the PHPPresentation library [ through composer] ( http://getcomposer.org/ ) . To do so, add
52
54
the following lines to your `` composer.json `` .
53
55
@@ -59,14 +61,25 @@ the following lines to your ``composer.json``.
59
61
}
60
62
```
61
63
62
- Alternatively, you can download the latest release from the [ releases page] ( https://github.com/PHPOffice/PHPPresentation/releases ) .
63
- In this case, you will have to register the autoloader. Register autoloading is required only if you do not use composer in your project.
64
+ #### Manual download method
65
+
66
+ Alternatively, you can download the latest release from the [ releases page] ( https://github.com/PHPOffice/PHPPresentation/releases ) .
67
+ In this case, you will have to register the autoloader.
68
+ (Register autoloading is required only if you do not use composer in your project.)
64
69
65
70
``` php
66
71
require_once 'path/to/PhpPresentation/src/PhpPresentation/Autoloader.php';
67
72
\PhpOffice\PhpPresentation\Autoloader::register();
68
73
```
69
74
75
+ You will also need to download the latest PHPOffice/Common release from its [ releases page] ( https://github.com/PHPOffice/Common/releases ) .
76
+ And you will also have to register its autoloader, too.
77
+
78
+ ``` php
79
+ require_once 'path/to/PhpOffice/Common/src/Common/Autoloader.php';
80
+ \PhpOffice\Common\Autoloader::register();
81
+ ```
82
+
70
83
## Getting started
71
84
72
85
The following is a basic usage example of the PHPPresentation library.
@@ -75,6 +88,8 @@ The following is a basic usage example of the PHPPresentation library.
75
88
// with your own install
76
89
require_once 'src/PhpPresentation/Autoloader.php';
77
90
\PhpOffice\PhpPresentation\Autoloader::register();
91
+ require_once 'src/Common/Autoloader.php';
92
+ \PhpOffice\Common\Autoloader::register();
78
93
79
94
// with Composer
80
95
require_once 'vendor/autoload.php';
0 commit comments