Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Identification #33

Open
mav2287 opened this issue Jul 26, 2021 · 2 comments
Open

Device Identification #33

mav2287 opened this issue Jul 26, 2021 · 2 comments

Comments

@mav2287
Copy link

mav2287 commented Jul 26, 2021

is there a middleware for device identification? For example a middleware that will add a custom attribute or attributes that identify a device? IE. "_deviceMake" => "iPhone 12"

Here are some example libraries for this:
https://github.com/serbanghita/Mobile-Detect/
https://github.com/matomo-org/device-detector
https://github.com/jenssegers/agent

@oscarotero
Copy link
Member

There was a middleware in the PSR7 middlewares repository (https://github.com/oscarotero/psr7-middlewares#detectdevice) using Mobile Detect, but it wasn't ported yet to this organization.

Feel free to work on that if you want.

@mav2287
Copy link
Author

mav2287 commented Jul 26, 2021

I will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants