Added PHP Exception handling & logging

Signed-off-by: Kakysha <ezhikvdele@gmail.com>
Merge branch 'exception-handling' into actual