ua-parser/uap-php

Did device->family change?

jimmypuckett opened this issue · 2 comments

We use this package in another package, and I would have sworn that $client->device->family would return Tablet for an iPad or Mobile for an iPhone, but now we get iPhone for an 'iPhone

From what we remember, $client->device->family had 3 buckets...

  1. Mobile
    2 Other
  2. Tablet

Did something change in a newer version or did we just have it wrong to begin with?

Thanks.

korys commented

Joining to above question. It would be nice if this functionality worked as explained above.
Otherwise is it possible to add a new param like $client->device->type with set of values i.e.: 'mobile', 'tablet', 'destop', 'other'?

No activity for a long time, closing. Generally the family is simply inherited from https://github.com/ua-parser/uap-core