PHP implementation of ua-parser