Composer Error while generating in PHPMaker 2026 with PHP 8.6

These are my requirements:

  • PHPMaker v2026.16.
  • PHP v8.6
  • NodeJS v26.13.1
  • MySQL v8.4.7
  • Apache v2.4.65

After re-generating ALL the script files, I got the following error:

Running composer update -n --no-audit --ansi...
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires tinymce/tinymce ^7, found tinymce/tinymce[7.0.0, ..., 7.9.3] but these were not loaded, because they are affected by security advisories ("]8;;``https://github.com/advisories/GHSA-vg35-5wq7-3x7w\PKSA-k4d6-bt7k-7ddp``]8;;", "]8;;``https://github.com/advisories/GHSA-v98h-vmpc-fpqv\PKSA-2v47-9p8y-4qt3``]8;;", "]8;;``https://github.com/advisories/GHSA-q742-qvgc-gc2f\PKSA-rf1b-835f-6yyv``]8;;", "]8;;``https://github.com/advisories/GHSA-mh5m-5hw4-5c69\PKSA-fp8q-vmhs-msy9``]8;;", "]8;;``https://github.com/advisories/GHSA-9hcv-j9pv-qmph\PKSA-kxv7-w7hg-zj9k``]8;;", "]8;;``https://github.com/advisories/GHSA-w9jx-4g6g-rp7x\PKSA-g43k-cp2d-8zny``]8;;", "]8;;``https://github.com/advisories/GHSA-mf2p-h6hf-fcwm\PKSA-bdqg-yq3b-xsg6``]8;;"). Go to https://packagist.org/security-advisories/` to find advisory details. To ignore the advisories, add their IDs to the "policy.advisories.ignore-id" config or add the package to "policy.advisories.ignore". To turn the feature off entirely, you can set "policy.advisories.block" to false. Problem 2 - Root composer.json requires hkvstore/spreadsheet ~2.0.0 -> satisfiable by hkvstore/spreadsheet[v2.0.0]. - hkvstore/spreadsheet v2.0.0 requires phpoffice/phpspreadsheet ^2.0.0 -> satisfiable by phpoffice/phpspreadsheet[2.1.19, ..., 2.4.x-dev]. - phpoffice/phpspreadsheet[2.1.19, ..., 2.1.x-dev] require php >=8.0.0 <8.5.0 -> your php version (8.6.0; overridden via config.platform, same as actual) does not satisfy that requirement. - phpoffice/phpspreadsheet[2.4.8, ..., 2.4.x-dev] require php >=8.1.0 <8.6.0 -> your php version (8.6.0; overridden via config.platform, same as actual) does not satisfy that requirement. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Error: Command failed: composer update -n --no-audit --ansi at genericNodeError (node:internal/errors:999:15) at wrappedFn (node:internal/errors:544:14) at checkExecSyncError (node:child_process:990:11) at execSync (node:child_process:1062:15) at global.Exec (C:\Users\User\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:526809) at global.RunComposerUpdate (C:\Users\User\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:538392) at C:\Users\User\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:557568 at at async main (C:\Users\User\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:557274) { status: 2, signal: null, output: [ null, null, null ], pid: 8912, stdout: null, stderr: null } Copying assets from tinymce/tinymce to D:\wamp\www\demo2026_original\tinymce Component assets copied successfully. Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).

Thoughts?

The error is related to the following two third-party packages:

TinyMCE

TinyMCE v7 has Security Advisorie, but the developer may not update older versions of TinyMCE anymore. You may upgrade to v8, or add the follows to composer.json and use v7 (at your own risks):

{
    "config": {
        "audit": {
            "ignore": [
                "GHSA-vg35-5wq7-3x7w",
                "GHSA-v98h-vmpc-fpqv",
                "GHSA-q742-qvgc-gc2f",
                "GHSA-mh5m-5hw4-5c69",
                "GHSA-9hcv-j9pv-qmph",
                "GHSA-w9jx-4g6g-rp7x",
                "GHSA-mf2p-h6hf-fcwm"
            ]
        }
    }
}

portphp/spreadsheet

Older version of portphp (v1.x) did not support PHP 8.2 (required by PHPMaker 2026) so PHPMaker used the forked hkvstore/spreadsheet. Now that portphp (v2.x) supports PHP >= 8.2, so you may update template to use v2.

Thank you.

Now it works properly.