{"id":20301287,"url":"https://github.com/indentno/detect-user-agent","last_synced_at":"2025-03-04T06:26:26.999Z","repository":{"id":62542116,"uuid":"101625411","full_name":"indentno/detect-user-agent","owner":"indentno","description":"Detects the user agent of the browser","archived":false,"fork":false,"pushed_at":"2017-08-28T09:10:29.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-14T23:45:21.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indentno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-28T09:09:48.000Z","updated_at":"2017-08-28T09:10:30.000Z","dependencies_parsed_at":"2022-11-02T15:45:33.465Z","dependency_job_id":null,"html_url":"https://github.com/indentno/detect-user-agent","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indentno%2Fdetect-user-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indentno%2Fdetect-user-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indentno%2Fdetect-user-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indentno%2Fdetect-user-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indentno","download_url":"https://codeload.github.com/indentno/detect-user-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241796232,"owners_count":20021629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T16:25:08.100Z","updated_at":"2025-03-04T06:26:26.969Z","avatar_url":"https://github.com/indentno.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Detect User Agent\n\n[![Packagist](https://img.shields.io/packagist/dt/sempro/detect-user-agent.svg?style=flat-square)](https://packagist.org/packages/sempro/detect-user-agent)\n[![Packagist](https://img.shields.io/packagist/v/sempro/detect-user-agent.svg?style=flat-square)](https://packagist.org/packages/sempro/detect-user-agent)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\nDetects what user agent the browser is using.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require sempro/detect-user-agent\n```\n\nIf you are using a version below 5.5 of laravel, then you will also have to add the service provider to the `app.php` config file.\n\n```php\n...\nSempro\\DetectUserAgent\\Providers\\DetectUserAgentServiceProvider::class,\n...\n```\n\n## Usage\n\n```php\nuse Sempro\\DetectUserAgent\\Contracts\\DetectUserAgent;\n\n...\n\npublic function index(DetectUserAgent $userAgent)\n{\n    return $userAgent-\u003eisMobile();\n}\n```\n\nSee source file for an overview of what methods are available.\n\n## Credits\n\n- [Runar Jørgensen](https://github.com/ventrec)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findentno%2Fdetect-user-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findentno%2Fdetect-user-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findentno%2Fdetect-user-agent/lists"}