add resolver class and sample main php.