PHP class with tool method for any kind of need/problem