mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
ca5da99160 | |||
8a38813b12 | |||
72b9f420d7 |
15
README.md
15
README.md
@ -1,4 +1,4 @@
|
||||
# SimpleXLSXGen class 0.9.14 (Official)
|
||||
# SimpleXLSXGen class 0.9.15 (Official)
|
||||
[<img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.herokuapp.com%2Fshuchkin" />](https://www.patreon.com/shuchkin) [<img src="https://img.shields.io/github/license/shuchkin/simplexlsxgen" />](https://github.com/shuchkin/simplexlsxgen/blob/master/license.md) [<img src="https://img.shields.io/github/stars/shuchkin/simplexlsxgen" />](https://github.com/shuchkin/simplexlsxgen/stargazers) [<img src="https://img.shields.io/github/forks/shuchkin/simplexlsxgen" />](https://github.com/shuchkin/simplexlsxgen/network) [<img src="https://img.shields.io/github/issues/shuchkin/simplexlsxgen" />](https://github.com/shuchkin/simplexlsxgen/issues)
|
||||
|
||||
Export data to Excel XLSX file. PHP XLSX generator. No external tools and libraries.<br/>
|
||||
@ -48,7 +48,20 @@ SimpleXLSXGen::fromArray( $data )->saveAs('datatypes.xlsx');
|
||||
```
|
||||

|
||||
|
||||
### Debug
|
||||
```php
|
||||
ini_set('error_reporting', E_ALL );
|
||||
ini_set('display_errors', 1 );
|
||||
|
||||
$data = [
|
||||
['Debug', 123]
|
||||
]
|
||||
SimpleXLSXGen::fromArray( $data )->saveAs('debug.xlsx');
|
||||
```
|
||||
|
||||
|
||||
## History
|
||||
v0.9.15 (2020-07-14) escape of shared strings for special chars in cells [#1](https://github.com/shuchkin/simplexlsxgen/issues/1) <br/>
|
||||
v0.9.14 (2020-05-31) fixed num2name A-Z,AA-AZ column names, thx Ertan Yusufoglu<br/>
|
||||
v0.9.13 (2020-05-21) if string more 160 chars, save as inlineStr<br/>
|
||||
v0.9.12 (2020-05-21) readme fixed<br/>
|
||||
|
@ -208,10 +208,10 @@ class SimpleXLSXGen {
|
||||
$cs = 5; // [22] m/d/yy h:mm
|
||||
} elseif ( mb_strlen( $v ) > 160 ) {
|
||||
$ct = 'inlineStr';
|
||||
$cv = htmlentities( $v, ENT_QUOTES );
|
||||
$cv = str_replace(['&','<','>'],['&','<','>'], $v);
|
||||
} else {
|
||||
$ct = 's'; // shared string
|
||||
$v = htmlentities($v, ENT_QUOTES);
|
||||
$v = str_replace(['&','<','>'],['&','<','>'], $v);
|
||||
$cv = array_search( $v, $SI, true );
|
||||
if ( $cv === false ) {
|
||||
$SI[] = $v;
|
||||
|
Reference in New Issue
Block a user