Skip to content

Commit ec745a1

Browse files
ArkaniusPowerKiKi
andauthored
starting the upgrade to php74
* Point contributors to PhpSpreadsheet * Mentions incompatiblity with PHP 5.6.29 and SQLite3 Fixes PHPOffice#1085 Closes PHPOffice#1122 * Fix typo in bug number * PHPExcel is deprecated * Permanently archive the project The project is dead and should not be used anymore. * updating to 7.4 * Update String.php * enable at packagist Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
1 parent 1441011 commit ec745a1

File tree

3 files changed

+12
-69
lines changed

3 files changed

+12
-69
lines changed

Classes/PHPExcel/Shared/String.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ public static function utf16_decode($str, $bom_be = true)
523523
if (strlen($str) < 2) {
524524
return $str;
525525
}
526-
$c0 = ord($str{0});
527-
$c1 = ord($str{1});
526+
$c0 = ord($str[0]);
527+
$c1 = ord($str[1]);
528528
if ($c0 == 0xfe && $c1 == 0xff) {
529529
$str = substr($str, 2);
530530
} elseif ($c0 == 0xff && $c1 == 0xfe) {
@@ -535,11 +535,11 @@ public static function utf16_decode($str, $bom_be = true)
535535
$newstr = '';
536536
for ($i=0; $i<$len; $i+=2) {
537537
if ($bom_be) {
538-
$val = ord($str{$i}) << 4;
539-
$val += ord($str{$i+1});
538+
$val = ord($str[$i]) << 4;
539+
$val += ord($str[$i+1]);
540540
} else {
541-
$val = ord($str{$i+1}) << 4;
542-
$val += ord($str{$i});
541+
$val = ord($str[$i+1]) << 4;
542+
$val += ord($str[$i]);
543543
}
544544
$newstr .= ($val == 0x228) ? "\n" : chr($val);
545545
}

README.md

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,9 @@
1-
# PHPExcel - OpenXML - Read, Write and Create spreadsheet documents in PHP - Spreadsheet engine
2-
PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.
1+
# PHPExcel - DEAD
32

4-
Master: [![Build Status](https://travis-ci.org/PHPOffice/PHPExcel.png?branch=master)](http://travis-ci.org/PHPOffice/PHPExcel)
5-
6-
Develop: [![Build Status](https://travis-ci.org/PHPOffice/PHPExcel.png?branch=develop)](http://travis-ci.org/PHPOffice/PHPExcel)
7-
8-
[![Join the chat at https://gitter.im/PHPOffice/PHPExcel](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/PHPOffice/PHPExcel)
9-
10-
## File Formats supported
11-
12-
### Reading
13-
* BIFF 5-8 (.xls) Excel 95 and above
14-
* Office Open XML (.xlsx) Excel 2007 and above
15-
* SpreadsheetML (.xml) Excel 2003
16-
* Open Document Format/OASIS (.ods)
17-
* Gnumeric
18-
* HTML
19-
* SYLK
20-
* CSV
21-
22-
### Writing
23-
* BIFF 8 (.xls) Excel 95 and above
24-
* Office Open XML (.xlsx) Excel 2007 and above
25-
* HTML
26-
* CSV
27-
* PDF (using either the tcPDF, DomPDF or mPDF libraries, which need to be installed separately)
28-
29-
30-
## Requirements
31-
* PHP version 5.2.0 or higher
32-
* PHP extension php_zip enabled (required if you need PHPExcel to handle .xlsx .ods or .gnumeric files)
33-
* PHP extension php_xml enabled
34-
* PHP extension php_gd2 enabled (optional, but required for exact column width autocalculation)
35-
36-
37-
## Want to contribute?
38-
39-
If you would like to contribute, here are some notes and guidlines:
40-
- All new development happens on the 1.8 branch, so it is always the most up-to-date
41-
- The master branch only contains tagged releases
42-
- If you are going to be submitting a pull request, please fork from 1.8, and submit your pull request back to that 1.8 branch
43-
- Wherever possible, code changes should conform as closely as possible to PSR-2 standards
44-
- [Helpful article about forking](https://help.github.com/articles/fork-a-repo/ "Forking a Github repository")
45-
- [Helpful article about pull requests](https://help.github.com/articles/using-pull-requests/ "Pull Requests")
3+
PHPExcel last version, 1.8.1, was released in 2015. The project was officially deprecated in 2017 and permanently archived in 2019.
464

5+
The project has not be maintained for years and must not be used anymore. **All users must migrate** to its direct successor [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet), or another alternative.
476

487
## License
8+
499
PHPExcel is licensed under [LGPL (GNU LESSER GENERAL PUBLIC LICENSE)](https://github.com/PHPOffice/PHPExcel/blob/master/license.md)

composer.json

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
{
2-
"name": "phpoffice/phpexcel",
2+
"name": "convenia/excel-manager",
33
"description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
44
"keywords": ["PHP","Excel","OpenXML","xlsx","xls","spreadsheet"],
55
"homepage": "https://github.com/PHPOffice/PHPExcel",
66
"type": "library",
7-
"license": "LGPL-2.1",
8-
"authors": [
9-
{
10-
"name": "Maarten Balliauw",
11-
"homepage": "http://blog.maartenballiauw.be"
12-
},
13-
{
14-
"name": "Mark Baker",
15-
"homepage": "http://markbakeruk.net"
16-
},
17-
{
18-
"name": "Franck Lefevre",
19-
"homepage": "http://rootslabs.net"
20-
},
21-
{
22-
"name": "Erik Tilt"
23-
}
24-
],
7+
"license": "MIT",
258
"require": {
269
"php": "^5.2|^7.0",
2710
"ext-mbstring": "*",

0 commit comments

Comments
 (0)