![Adrien Crivelli](/assets/img/avatar_default.png)
We wrapped lines to make easier the source easier to read, and to have more manageable diffs. This was done with something like: ```sh pandoc --wrap=auto --atx-headers -f markdown -t markdown-fenced_code_attributes+pipe_tables+raw_html+intraword_underscores` ```
19 lines
698 B
Markdown
19 lines
698 B
Markdown
# Migration from PHPExcel
|
|
|
|
PhpSpreadsheet introduced many breaking changes by introducing
|
|
namespaces and renaming some classes. To help you migrate existing
|
|
project, a tool was written to replace all references to PHPExcel
|
|
classes to their new names.
|
|
|
|
The tool is included in PhpSpreadsheet. It scans recursively all files
|
|
and directories, starting from the current directory. Assuming it was
|
|
installed with composer, it can be run like so:
|
|
|
|
``` sh
|
|
cd /project/to/migrate/src
|
|
/project/to/migrate/vendor/phpoffice/phpspreadsheet/bin/migrate-from-phpexcel
|
|
```
|
|
|
|
**Important** The tool will irreversibly modify your sources, be sure to
|
|
backup everything, and double check the result before committing.
|