{"id":20779221,"url":"https://github.com/bolt/browsercheck","last_synced_at":"2025-03-11T22:19:11.272Z","repository":{"id":62495789,"uuid":"316219463","full_name":"bolt/browsercheck","owner":"bolt","description":"💻   Detect devices, clients, operating systems, brands and models in Twig","archived":false,"fork":false,"pushed_at":"2020-11-26T12:53:59.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-19T08:47:37.521Z","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/bolt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-26T12:07:53.000Z","updated_at":"2023-11-04T06:00:27.000Z","dependencies_parsed_at":"2022-11-02T09:32:15.436Z","dependency_job_id":null,"html_url":"https://github.com/bolt/browsercheck","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fbrowsercheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fbrowsercheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fbrowsercheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2Fbrowsercheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolt","download_url":"https://codeload.github.com/bolt/browsercheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243119649,"owners_count":20239342,"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-17T13:26:39.361Z","updated_at":"2025-03-11T22:19:11.236Z","avatar_url":"https://github.com/bolt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💻 Bolt Browsercheck Extension\n\nThis Bolt extension works with the User-Agent to detect devices (desktop, tablet, mobile, etc.), \nclients, operating systems, brands and models.\n\n## How to install\n\n```bash\ncomposer require bolt/browsercheck\n```\n\n## How to use\n\nThe extension defined a global Twig variable called `browsercheck`,\nwhich gives you access to a lot of properties based on the `User-Agent`.\n\n### Get browser name\n\n```twig\n{{ browsercheck.client.name }}\n```\n\n### Get browser version\n\n```twig\n{{ browsercheck.client.version }}\n```\n\n### Get the operating system name\n\n```twig\n{{ browsercheck.os.name }}\n```\n\n### Get the operating system version \n\n```twig\n{{ browsercheck.os.version }}\n```\n\n### How to view all possible properties\n\nThere are many more properties available. To print them all,\nuse:\n\n```twig\n{{ dump(browsercheck) }}\n```\n\nBehind the scenes, the `browsercheck` Twig global variable is an instance\nof [Matomo's Device Detection Library](https://github.com/matomo-org/device-detector).\n\nAny method that is available to the `DeviceDetector` class is accessible through\nthe `browsercheck` variable defined by this extension.\n\n## Running PHPStan and Easy Codings Standard\n\nFirst, make sure dependencies are installed:\n\n```\nCOMPOSER_MEMORY_LIMIT=-1 composer update\n```\n\nAnd then run ECS:\n\n```\nvendor/bin/ecs check src\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fbrowsercheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolt%2Fbrowsercheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fbrowsercheck/lists"}