{"id":21467436,"url":"https://github.com/elusivecodes/fyreuseragent","last_synced_at":"2026-03-07T14:31:51.040Z","repository":{"id":62508444,"uuid":"434551708","full_name":"elusivecodes/FyreUserAgent","owner":"elusivecodes","description":"FyreUserAgent is a free, open-source user agent library for PHP.","archived":false,"fork":false,"pushed_at":"2024-10-27T11:12:59.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-27T12:31:00.693Z","etag":null,"topics":["php","user-agent"],"latest_commit_sha":null,"homepage":"","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/elusivecodes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-03T10:13:57.000Z","updated_at":"2024-10-27T11:12:23.000Z","dependencies_parsed_at":"2024-06-29T02:45:44.740Z","dependency_job_id":"8c2b6ebd-1707-4d9a-a1a0-54d3145b3137","html_url":"https://github.com/elusivecodes/FyreUserAgent","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreUserAgent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreUserAgent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreUserAgent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreUserAgent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreUserAgent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017539,"owners_count":17560536,"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":["php","user-agent"],"created_at":"2024-11-23T08:18:07.401Z","updated_at":"2026-03-07T14:31:50.999Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyreUserAgent\r\n\r\n**FyreUserAgent** is a free, open-source user agent library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/useragent\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Http\\UserAgent;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n- `$agent` is a string representing the user agent.\r\n\r\n```php\r\n$userAgent = new UserAgent($agent);\r\n```\r\n\r\nAlternatively, you can use the `fromString` method for easier chaining.\r\n\r\n```php\r\n$userAgent = UserAgent::fromString($agent);\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Get Agent String**\r\n\r\nGet the user agent string.\r\n\r\n```php\r\n$agent = $userAgent-\u003egetAgentString();\r\n```\r\n\r\n**Get Browser**\r\n\r\nGet the browser.\r\n\r\n```php\r\n$browser = $userAgent-\u003egetBrowser();\r\n```\r\n\r\n**Get Mobile**\r\n\r\nGet the mobile.\r\n\r\n```php\r\n$mobile = $userAgent-\u003egetMobile();\r\n```\r\n\r\n**Get Platform**\r\n\r\nGet the platform.\r\n\r\n```php\r\n$platform = $userAgent-\u003egetPlatform();\r\n```\r\n\r\n**Get Robot**\r\n\r\nGet the robot.\r\n\r\n```php\r\n$robot = $userAgent-\u003egetRobot();\r\n```\r\n\r\n**Get Version**\r\n\r\nGet the browser version.\r\n\r\n```php\r\n$version = $userAgent-\u003egetVersion();\r\n```\r\n\r\n**Is Browser**\r\n\r\nDetermine whether the user agent is a browser.\r\n\r\n```php\r\n$isBrowser = $userAgent-\u003eisBrowser();\r\n```\r\n\r\n**Is Mobile**\r\n\r\nDetermine whether the user agent is a mobile.\r\n\r\n```php\r\n$isMobile = $userAgent-\u003eisMobile();\r\n```\r\n\r\n**Is Robot**\r\n\r\nDetermine whether the user agent is a robot.\r\n\r\n```php\r\n$isRobot = $userAgent-\u003eisRobot();\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreuseragent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyreuseragent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreuseragent/lists"}