{"id":36979457,"url":"https://github.com/guiliredu/simple-user-agent","last_synced_at":"2026-01-13T22:49:05.352Z","repository":{"id":33443950,"uuid":"157419326","full_name":"guiliredu/simple-user-agent","owner":"guiliredu","description":"Simple User Agent parser for PHP","archived":false,"fork":false,"pushed_at":"2021-11-02T06:38:22.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-14T21:44:09.666Z","etag":null,"topics":["php","user-agent"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guiliredu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-13T17:25:24.000Z","updated_at":"2024-08-24T02:02:46.000Z","dependencies_parsed_at":"2022-09-09T09:00:41.321Z","dependency_job_id":null,"html_url":"https://github.com/guiliredu/simple-user-agent","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/guiliredu/simple-user-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guiliredu%2Fsimple-user-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guiliredu%2Fsimple-user-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guiliredu%2Fsimple-user-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guiliredu%2Fsimple-user-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guiliredu","download_url":"https://codeload.github.com/guiliredu/simple-user-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guiliredu%2Fsimple-user-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["php","user-agent"],"created_at":"2026-01-13T22:49:04.654Z","updated_at":"2026-01-13T22:49:05.343Z","avatar_url":"https://github.com/guiliredu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Simple User Agent - PHP\n\nA simple class to parse data from a user agent.\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse SimpleUserAgent\\UserAgent;\n\n$agent = new UserAgent();\n\n```\n\nYou can set a user agent in the first parameter of the constructor. If the parameter is empty, it will try to parse data from `$_SERVER['HTTP_USER_AGENT']`\n\n```php\n$agent = new UserAgent('Mozilla/5.0 ...');\n```\n\nYou can set a user agent after instantiation, calling this method:\n\n```php\n$agent-\u003esetAgent('Mozilla/5.0 ...');\n```\n\nTo get the data, you can call these available methods\n\n```php\n$agent-\u003egetAgent() // Full user agent string\n$agent-\u003egetDevice() // iPhone\n$agent-\u003egetOS() // iOS\n$agent-\u003egetBrowser() // Apple Safari\n$agent-\u003egetPrefix() // Safari\n$agent-\u003egetVersion() // 11.0\n$agent-\u003egetEngine() // WebKit\n$agent-\u003eisBot() // true / false\n$agent-\u003egetInfo() // Array with all the above info\n```\n\n---\n\nThis project is under development - For test purposes only\n\n---\n\nReferences:\n\n- https://deviceatlas.com/blog/list-of-user-agent-strings\n- https://developers.whatismybrowser.com/useragents/explore/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguiliredu%2Fsimple-user-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguiliredu%2Fsimple-user-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguiliredu%2Fsimple-user-agent/lists"}