Composer error [the requested PHP extension dom is missing from your system.]

以下の記事でCakePHP2.xのdebug kitをcomposerからインストールしようとして以下のコマンド実行でエラー[the requested PHP extension dom is missing from your system.]となりました。

https://normalblog.net/system/cakephp/cakephp2-x_debug_kit_install_error/

dom がない為だったので、この対応が以下になります。

エラー↓

同様の事が以下記事で起きていたので同様の対応を行います。

https://normalblog.net/system/composer/php-extension-ext-mcrypt/

無事インストール出来ました。

参考サイト様