added impl for php and c-sharp