"Fossies" - the Fresh Open Source Software Archive

Member "moodle/lib/phpspreadsheet/readme_moodle.txt" (28 Jul 2021, 2276 Bytes) of package /linux/www/moodle-latest-39.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "readme_moodle.txt": 3.10.4_vs_3.11.

    1 Description of PhpSpreadsheet 1.10.1 import into Moodle
    2 
    3 Last release package can be found in https://github.com/PHPOffice/PhpSpreadsheet/releases
    4 
    5 NOTICE:
    6  * Before running composer command, make sure you have the composer version updated.
    7  * Composer version 1.9.1 2019-11-01 17:20:17
    8 
    9 STEPS:
   10  * Create a temporary folder outside your moodle installation
   11  * Execute `composer require phpoffice/phpspreadsheet`
   12  * Remove the old 'vendor' directory in lib/phpspreadsheet/
   13  * Copy contents of 'vendor' directory
   14  * Update lib/thirdpartylibs.xml
   15  * Apply the modifications described in the CHANGES section
   16  * Go to http://localhost/lib/tests/other/spreadsheettestpage.php and test the generated files
   17 
   18 
   19 CHANGES:
   20  * Remove the following folders (and their content):
   21    - vendor/phpoffice/phpspreadsheet/bin
   22    - vendor/phpoffice/phpspreadsheet/docs
   23    - vendor/phpoffice/phpspreadsheet/samples
   24 
   25 * Remove the hidden folders and files in vendor/phpoffice/phpspreadsheet/:
   26   - .gitattributes
   27   - .gitignore
   28   - .php_cs.dist
   29   - .sami.php
   30   - .scrutinizer.yml
   31   - .travis.yml
   32 
   33  * Add the next Moodle hack at the beginning of the function sysGetTempDir()
   34 located in vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php
   35     // Moodle hack!
   36      if (function_exists('make_temp_directory')) {
   37          $temp = make_temp_directory('phpspreadsheet');
   38          return realpath(dirname($temp));
   39      }
   40   We need this hack because we can not guarantee sysGetTempDir() works everywhere.
   41 
   42  * Shared/OLE has been removed because OLE is not DFSG compliant and is not being used in core code.
   43    Remove the files/folders:
   44    - PhpSpreadsheet/Shared/OLE.php
   45    - PhpSpreadsheet/Shared/OLERead.php
   46    - PhpSpreadsheet/Shared/OLE/*
   47 
   48  * Xsl files have been removed. These files are for Excel version 5 (created in 1993) and are not used in core code.
   49    Remove the files/folders:
   50    - PhpSpreadsheet/Reader/Xls.php
   51    - PhpSpreadsheet/Reader/Xls/*
   52    - PhpSpreadsheet/Shared/Xls.php
   53    - PhpSpreadsheet/Writer/Xls.php
   54    - PhpSpreadsheet/Writer/Xls/*
   55 
   56 * Remove the next files in vendor/markbaker/ related to external testing that we don't need matrix/:
   57   - infection.json.dist (PHP mutation testing framework configuration file)
   58   - phpstan.neon (PHP static analyzer configuration file)