{"id":36238849,"url":"https://github.com/flextype-components/agent","last_synced_at":"2026-01-11T06:41:03.253Z","repository":{"id":62505643,"uuid":"43655714","full_name":"flextype-components/agent","owner":"flextype-components","description":"Agent component provides a simple way to detect the kind of device that made the request.","archived":false,"fork":false,"pushed_at":"2018-04-12T11:49:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-09T22:58:17.646Z","etag":null,"topics":["agent","component","flextype","flextype-component","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/flextype-components.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-10-04T22:49:18.000Z","updated_at":"2018-04-26T09:09:32.000Z","dependencies_parsed_at":"2022-11-02T12:45:29.776Z","dependency_job_id":null,"html_url":"https://github.com/flextype-components/agent","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/flextype-components/agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fagent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fagent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fagent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fagent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flextype-components","download_url":"https://codeload.github.com/flextype-components/agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flextype-components%2Fagent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28295755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["agent","component","flextype","flextype-component","php","user-agent"],"created_at":"2026-01-11T06:41:02.658Z","updated_at":"2026-01-11T06:41:03.246Z","avatar_url":"https://github.com/flextype-components.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agent Component\n![version](https://img.shields.io/badge/version-1.1.1-brightgreen.svg?style=flat-square \"Version\")\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/flextype-components/agent/blob/master/LICENSE)\n\nAgent component provides a simple way to detect the kind of device that made the request.\n\n### Installation\n\n```\ncomposer require flextype-components/agent\n```\n\n### Usage\n\n```php\nuse Flextype\\Component\\Agent\\Agent;\n```\n\nReturns true if the user agent that made the request is identified as a mobile device.\n```php\nif (Agent::isMobile()) {\n    // Do something...\n}  \n```\n\nReturns true if the user agent that made the request is identified as a robot/crawler.\n```php\nif (Agent::isRobot()) {\n    // Do something...\n}  \n```\n\nReturns TRUE if the string you're looking for exists in the user agent string and FALSE if not.\n```php\nif (Agent::is('iphone')) {\n     // Do something...\n}\n\nif (Agent::is(array('iphone', 'ipod'))) {\n    // Do something...\n}\n```\n\n## License\nSee [LICENSE](https://github.com/flextype-components/agent/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflextype-components%2Fagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflextype-components%2Fagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflextype-components%2Fagent/lists"}