Centos 7 EOL need php56-imap to complete task

What about Ilya’s idea back in 2020? Would this work today running centos7 EOL server and add the php56-imap so I can do the steps I need? The post says it can be reversed if it doesn’t work. I can do a snapshot of the server on Linode and restore it if there is a problem. Thanks.