just first idea based on PHP client