I have problem while install CakePHP

Subj.
Ubuntu 20, composer says:

Problem 1
- phpunit/phpunit[8.5.12, …, 8.5.33, 9.3.0, …, 9.6.7] require ext-dom * → it is missing from your system. Install or enable PHP’s dom extension.
- phpunit/phpunit[8.5.0, …, 8.5.11] require php ^7.2 → your php version (8.1.2) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ~8.5.0 || ^9.3 → satisfiable by phpunit/phpunit[8.5.0, …, 8.5.33, 9.3.0, …, 9.6.7].

===========
require php ^7.2 → your php version (8.1.2) does not satisfy that requirement

what I did wrong?
Should I downgrade PHP 8.1 downto 7.2 ? :))

ext-dom is part of the php-xml package which is a PHP extension.
Try sudo apt install php-xml and you should be fine.
Also see require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. - DevOps - DevSecOps - SRE - DataOps - AIOps

Thank a lot. Thats help. Goto explore CakePHP.