Decode transaction logs with PHP

Hello!
I want to find out from a transaction I load via the “Get transaction by hash” API endpoint which tokens were transferred with which amount. I think I need to decode the logs for that, right? However, I need this in my PHP application and so far I just use the API endpoints, without any SDK. So how can I decode the logs? Do I need web3.php for example? Or is there a way via the API?

there isn’t a way with the api now from what I know

if you want to parse only the logs for transfers then you could parse them directly too, there is only topic0, topic1, topic2 and sometimes data that is a value or topic3

Ok, but do you know what algorithm I have to use to decode them?

they are hex encoded values