UAParser.js - Free & open-source JavaScript library to detect user's Browser, Engine, OS, CPU, and Device type/model. Runs either in browser (client-side) or node.js (server-side).
Why do you think that https://github.com/laravel/framework is a good alternative to ua-parser-js