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
This is according to our formal, published, policy to only support
EOL PHP after 6 months.
See https://phpspreadsheet.readthedocs.io/en/latest/#php-version-support
Also consolidate documentation in a single place, not in the README,
because it's a pain to maintain almost-duplicated-but-not-really
documentation.
Copy file name to clipboardExpand all lines: README.md
+1-72Lines changed: 1 addition & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,80 +11,9 @@
11
11
PhpSpreadsheet is a library written in pure PHP and offers a set of classes that
12
12
allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc.
13
13
14
-
## PHP Version Support
15
-
16
-
LTS: Support for PHP versions will only be maintained for a period of six months beyond the
17
-
[end of life](https://www.php.net/supported-versions) of that PHP version.
18
-
19
-
Currently the required PHP minimum version is PHP __8.0__, and we [will support that version](https://www.php.net/eol.php) until May 2024.
20
-
21
-
See the `composer.json` for other requirements.
22
-
23
14
## Installation
24
15
25
-
Use [composer](https://getcomposer.org) to install PhpSpreadsheet into your project:
26
-
27
-
```sh
28
-
composer require phpoffice/phpspreadsheet
29
-
```
30
-
31
-
If you are building your installation on a development machine that is on a different PHP version to the server where it will be deployed, or if your PHP CLI version is not the same as your run-time such as `php-fpm` or Apache's `mod_php`, then you might want to add the following to your `composer.json` before installing:
32
-
```json
33
-
{
34
-
"config": {
35
-
"platform": {
36
-
"php": "8.0"
37
-
}
38
-
}
39
-
}
40
-
```
41
-
and then run
42
-
```sh
43
-
composer install
44
-
```
45
-
to ensure that the correct dependencies are retrieved to match your deployment environment.
46
-
47
-
See [CLI vs Application run-time](https://php.watch/articles/composer-platform-check) for more details.
48
-
49
-
### Additional Installation Options
50
-
51
-
If you want to write to PDF, or to include Charts when you write to HTML or PDF, then you will need to install additional libraries:
52
-
53
-
#### PDF
54
-
55
-
For PDF Generation, you can install any of the following, and then configure PhpSpreadsheet to indicate which library you are going to use:
One or the other of these libraries is necessary if you want to generate HTML or PDF files that include charts; or to render a Chart to an Image format from within your code.
86
-
They are not necessary to define charts for writing to `Xlsx` files.
87
-
Other file formats don't support writing Charts.
16
+
See the [install instructions](https://phpspreadsheet.readthedocs.io/en/latest/#installation).
If you are building your installation on a development machine that is on a different PHP version to the server where it will be deployed, or if your PHP CLI version is not the same as your run-time such as `php-fpm` or Apache's `mod_php`, then you might want to add the following to your `composer.json` before installing:
58
-
```json
59
-
{
60
-
"config": {
61
-
"platform": {
62
-
"php": "8.0"
63
-
}
64
-
}
65
-
}
57
+
If you are building your installation on a development machine that is on a different PHP version to the server where it
58
+
will be deployed, or if your PHP CLI version is different from your run-time such as `php-fpm` or Apache's `mod_php`,
59
+
then you might want to configure composer for that.
60
+
See [composer documentation](https://getcomposer.org/doc/06-config.md#platform)
61
+
on how to edit your `composer.json` to ensure that the correct dependencies are retrieved to match your deployment
62
+
environment.
63
+
64
+
See [CLI vs Application run-time](https://php.watch/articles/composer-platform-check) for more details.
65
+
66
+
### Additional Installation Options
67
+
68
+
If you want to write to PDF, or to include Charts when you write to HTML or PDF, then you will need to install additional libraries:
69
+
70
+
#### PDF
71
+
72
+
For PDF Generation, you can install any of the following, and then configure PhpSpreadsheet to indicate which library you are going to use:
to ensure that the correct dependencies are retrieved to match your deployment environment.
72
101
73
-
See [CLI vs Application run-time](https://php.watch/articles/composer-platform-check) for more details.
102
+
One or the other of these libraries is necessary if you want to generate HTML or PDF files that include charts; or to render a Chart to an Image format from within your code.
103
+
They are not necessary to define charts for writing to `Xlsx` files.
0 commit comments