init porting EdmundsAPI class in PHP from JS