I've been trying with cashaddress-php but it doesn't work because the address should be in hex format, I tried with hex public hash key it also didn't work.
Invalid hash length [320 bits] for pubkeyhash
Is there's any way to convert legacy bitcoin-cash address to copay(cashAddr)?