提交的内容
This commit is contained in:
24
vendor/phpoffice/phpspreadsheet/README.md
vendored
Executable file → Normal file
24
vendor/phpoffice/phpspreadsheet/README.md
vendored
Executable file → Normal file
@ -32,7 +32,7 @@ If you are building your installation on a development machine that is on a diff
|
||||
```json
|
||||
{
|
||||
"require": {
|
||||
"phpoffice/phpspreadsheet": "^1.23"
|
||||
"phpoffice/phpspreadsheet": "^1.28"
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
@ -74,16 +74,20 @@ or the appropriate PDF Writer wrapper for the library that you have chosen to in
|
||||
For Chart export, we support following packages, which you will also need to install yourself using `composer require`
|
||||
- [jpgraph/jpgraph](https://packagist.org/packages/jpgraph/jpgraph) (this package was abandoned at version 4.0.
|
||||
You can manually download the latest version that supports PHP 8 and above from [jpgraph.net](https://jpgraph.net/))
|
||||
- [mitoteam/jpgraph](https://packagist.org/packages/mitoteam/jpgraph) (fork with php 8.1 support)
|
||||
- [mitoteam/jpgraph](https://packagist.org/packages/mitoteam/jpgraph) - up to date fork with modern PHP versions support and some bugs fixed.
|
||||
|
||||
and then configure PhpSpreadsheet using:
|
||||
```php
|
||||
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph::class); // to use jpgraph/jpgraph
|
||||
// to use jpgraph/jpgraph
|
||||
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph::class);
|
||||
//or
|
||||
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\MtJpGraphRenderer::class); // to use mitoteam/jpgraph
|
||||
// to use mitoteam/jpgraph
|
||||
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\MtJpGraphRenderer::class);
|
||||
```
|
||||
|
||||
One or the other of these libraries is necessary if you want to generate HTML or PDF files that include charts.
|
||||
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.
|
||||
They are not necessary to define charts for writing to `Xlsx` files.
|
||||
Other file formats don't support writing Charts.
|
||||
|
||||
## Documentation
|
||||
|
||||
@ -103,10 +107,15 @@ Posts already available to Patreon supporters:
|
||||
- Looping the Loop
|
||||
- Advice on Iterating through the rows and cells in a worksheet.
|
||||
|
||||
The next post (currently being written) will be:
|
||||
And for Patrons at levels actively using PhpSpreadsheet:
|
||||
- Behind the Mask
|
||||
- A look at Number Format Masks.
|
||||
|
||||
The Next Article (currently Work in Progress):
|
||||
- Formula for Success
|
||||
- How to debug formulae that don't produce the expected result.
|
||||
|
||||
|
||||
My aim is to post at least one article each month, taking a detailed look at some feature of MS Excel and how to use that feature in PhpSpreadsheet, or on how to perform different activities in PhpSpreadsheet.
|
||||
|
||||
Planned posts for the future include topics like:
|
||||
@ -116,8 +125,9 @@ Planned posts for the future include topics like:
|
||||
- Array Formulae
|
||||
- Conditional Formatting
|
||||
- Data Validation
|
||||
- Formula Debugging
|
||||
- Value Binders
|
||||
- Images
|
||||
- Charts
|
||||
|
||||
After a period of six months exclusive to Patreon supporters, articles will be incorporated into the public documentation for the library.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user